diff options
Diffstat (limited to 'libgo/go/testing/example.go')
-rw-r--r-- | libgo/go/testing/example.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/testing/example.go b/libgo/go/testing/example.go index e5bce7a..b995550 100644 --- a/libgo/go/testing/example.go +++ b/libgo/go/testing/example.go @@ -87,7 +87,7 @@ func runExample(eg InternalExample) (ok bool) { // Clean up in a deferred call so we can recover if the example panics. defer func() { - dstr := fmtDuration(time.Now().Sub(start)) + dstr := fmtDuration(time.Since(start)) // Close pipe, restore stdout, get output. w.Close() |