Delta is the amount of seconds between the last tick and the one before that
()
| 66 | |
| 67 | // Delta is the amount of seconds between the last tick and the one before that |
| 68 | func (c *Clock) Delta() float32 { |
| 69 | if c.paused { |
| 70 | return 0 |
| 71 | } |
| 72 | return float32(float64(c.deltaStamp) / float64(secondsInNano)) |
| 73 | } |
| 74 | |
| 75 | // Pause pauses the clock |
| 76 | func (c *Clock) Pause() { |
no outgoing calls