Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1595)

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/ Created 13 years, 4 months ago
Right Patch Set: diff -r 3c286b9b2206 https://go.googlecode.com/hg/ Created 13 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/time/tick.go ('k') | src/pkg/time/time.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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
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 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b