MCPcopy Create free account
hub / github.com/ByteArena/box2d / Reset

Method Reset

CommonB2Timer.go:25–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func (timer *B2Timer) Reset() {
26 timer.m_start = time.Now()
27}
28
29func (timer B2Timer) GetMilliseconds() float64 {
30 return time.Now().Sub(timer.m_start).Seconds() * 1000

Callers 2

MakeB2TimerFunction · 0.95
SolveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected