MCPcopy Index your code
hub / github.com/EngoEngine/engo / Time

Method Time

clock.go:91–94  ·  view source on GitHub ↗

Time is the number of seconds the clock has been running

()

Source from the content-addressed store, hash-verified

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

Callers 1

TestClockTimeFunction · 0.95

Calls 1

NowMethod · 0.65

Tested by 1

TestClockTimeFunction · 0.76