count to three before starting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-10-22 02:29:39 +02:00
parent 4d0920c40f
commit 89504a99ca
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -26,8 +26,9 @@ fun Application.module(testing: Boolean = false) {
val uploader = Uploader() val uploader = Uploader()
val processResults = ProcessResults() val processResults = ProcessResults()
environment.monitor.subscribe(ApplicationStarted) { environment.monitor.subscribe(ApplicationStarted) {
println("Starting benchmark")
val job = GlobalScope.launch { val job = GlobalScope.launch {
delay(3000L)
println("Starting benchmark")
while(elapsed > targetTime){ while(elapsed > targetTime){
println(currIter) println(currIter)
uploader.uploadData(currIter, gson, cachedFile) uploader.uploadData(currIter, gson, cachedFile)