Time is the number of seconds the clock has been running
()
| 89 | |
| 90 | // Time is the number of seconds the clock has been running |
| 91 | func (c *Clock) Time() float32 { |
| 92 | currStamp := theTimer.Now() |
| 93 | return float32(float64(currStamp-c.startStamp) / float64(secondsInNano)) |
| 94 | } |