(t *testing.T)
| 101 | } |
| 102 | |
| 103 | func TestTheTimerNow(t *testing.T) { |
| 104 | theTimer = realTime{} |
| 105 | res := time.Now().UnixNano() - theTimer.Now() |
| 106 | if res < -1000000 { //this is an arbitrary choice, could be smaller or larger depending on machine testing on |
| 107 | t.Error("theTimer when it's a realTime did not produce time.Now().UnixNano()") |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | func TestClockPause(t *testing.T) { |
| 112 | clock := NewClock() |