diff options
Diffstat (limited to 'src/testing/fuzz.go')
-rw-r--r-- | src/testing/fuzz.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testing/fuzz.go b/src/testing/fuzz.go index baf1c7243c..d561225b3c 100644 --- a/src/testing/fuzz.go +++ b/src/testing/fuzz.go @@ -674,7 +674,7 @@ func fRunner(f *F, fn func(*F)) { } for root := &f.common; root.parent != nil; root = root.parent { root.mu.Lock() - root.duration += time.Since(root.start) + root.duration += highPrecisionTimeSince(root.start) d := root.duration root.mu.Unlock() root.flushToParent(root.name, "--- FAIL: %s (%s)\n", root.name, fmtDuration(d)) @@ -687,7 +687,7 @@ func fRunner(f *F, fn func(*F)) { } // No panic or inappropriate Goexit. - f.duration += time.Since(f.start) + f.duration += highPrecisionTimeSince(f.start) if len(f.sub) > 0 { // Unblock inputs that called T.Parallel while running the seed corpus. @@ -700,9 +700,9 @@ func fRunner(f *F, fn func(*F)) { for _, sub := range f.sub { <-sub.signal } - cleanupStart := time.Now() + cleanupStart := highPrecisionTimeNow() err := f.runCleanup(recoverAndReturnPanic) - f.duration += time.Since(cleanupStart) + f.duration += highPrecisionTimeSince(cleanupStart) if err != nil { doPanic(err) } @@ -719,7 +719,7 @@ func fRunner(f *F, fn func(*F)) { } }() - f.start = time.Now() + f.start = highPrecisionTimeNow() f.resetRaces() fn(f) |