Versions in this module Expand all Collapse all v1 v1.0.1 Jan 14, 2025 Changes in this version + type Clock struct + func New() *Clock + func (c *Clock) AvgFrameRate() float64 + func (c *Clock) AvgSamples() int + func (c *Clock) Delta() time.Duration + func (c *Clock) Dt() float64 + func (c *Clock) FixedDelta() time.Duration + func (c *Clock) FrameCount() uint64 + func (c *Clock) FrameRate() float64 + func (c *Clock) FrameRateDeviation() float64 + func (c *Clock) LastFrame() time.Duration + func (c *Clock) MaxDelta() time.Duration + func (c *Clock) MaxFrameRate() float64 + func (c *Clock) Reset() + func (c *Clock) ResetFrameCount() + func (c *Clock) ResetLastFrame() + func (c *Clock) SetAvgSamples(n int) + func (c *Clock) SetFixedDelta(delta time.Duration) + func (c *Clock) SetFrameCount(count uint64) + func (c *Clock) SetMaxDelta(max time.Duration) + func (c *Clock) SetMaxFrameRate(max float64) + func (c *Clock) Tick() + func (c *Clock) Time() time.Duration