Delta Between Two Patch Sets: src/pkg/time/tick_test.go
Issue 5392041 :
code review 5392041: time: new Time, Duration, ZoneInfo types (Closed)
Left Patch Set: diff -r 4382717b7ffc https://go.googlecode.com/hg/
Right Patch Set: diff -r 3c286b9b2206 https://go.googlecode.com/hg/
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
src/pkg/runtime/darwin/386/sys.s
src/pkg/runtime/darwin/amd64/sys.s
src/pkg/runtime/freebsd/386/sys.s
src/pkg/runtime/freebsd/amd64/sys.s
src/pkg/runtime/linux/386/sys.s
src/pkg/runtime/linux/amd64/sys.s
src/pkg/runtime/linux/arm/sys.s
src/pkg/runtime/openbsd/386/sys.s
src/pkg/runtime/openbsd/amd64/sys.s
src/pkg/runtime/time.goc
src/pkg/runtime/windows/thread.c
src/pkg/time/Makefile
src/pkg/time/example_test.go
src/pkg/time/format.go
src/pkg/time/internal_test.go
src/pkg/time/sleep.go
src/pkg/time/sleep_test.go
src/pkg/time/sys.go
src/pkg/time/sys_unix.go
src/pkg/time/tick.go
src/pkg/time/tick_test.go
src/pkg/time/time.go
src/pkg/time/time_test.go
src/pkg/time/zoneinfo.go
src/pkg/time/zoneinfo_plan9.go
src/pkg/time/zoneinfo_unix.go
src/pkg/time/zoneinfo_windows.go
LEFT RIGHT
(Both sides are equal) 1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package time_test 5 package time_test
6 6
7 import ( 7 import (
8 "testing" 8 "testing"
9 . "time" 9 . "time"
10 ) 10 )
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading...
49 func BenchmarkTicker(b *testing.B) { 49 func BenchmarkTicker(b *testing.B) {
50 ticker := NewTicker(1) 50 ticker := NewTicker(1)
51 b.ResetTimer() 51 b.ResetTimer()
52 b.StartTimer() 52 b.StartTimer()
53 for i := 0; i < b.N; i++ { 53 for i := 0; i < b.N; i++ {
54 <-ticker.C 54 <-ticker.C
55 } 55 }
56 b.StopTimer() 56 b.StopTimer()
57 ticker.Stop() 57 ticker.Stop()
58 } 58 }
LEFT RIGHT