Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
aoli-al committed Jul 23, 2024
1 parent 44e632d commit 9ac4ce8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/kotlin/cmu/pasta/fray/core/TestRunner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class TestRunner(val config: Configuration) {
} else {
setup()
val timeSource = TimeSource.Monotonic
val start = timeSource.markNow()
var i = 0
while (i != config.iter) {
println("Starting iteration $i")
Expand All @@ -47,7 +48,7 @@ class TestRunner(val config: Configuration) {
Runtime.onMainExit()
}
if (GlobalContext.bugFound) {
println("Error found at iter: $i, Elapsed time: ${timeSource.markNow().elapsedNow()}")
println("Error found at iter: $i, Elapsed time: ${(timeSource.markNow() - start).inWholeMilliseconds}ms")
if (!config.exploreMode) {
break
}
Expand Down

0 comments on commit 9ac4ce8

Please sign in to comment.