Documentation ¶
Overview ¶
Package timing provides utilities for time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FPS ¶
FPS returns the number of frames being processed per second, supposing a time interval from lastTime to now.
func FPSToFrameDelay ¶
FPSToFrameDelay converts a frameRate like 60fps into a delay time between frames
func FPSToNano ¶
FPSToNano converts a framesPerSecond value to the number of nanoseconds that should take place for each frame.
func FrameDelayToFPS ¶
FrameDelayToFPS converts a duration of delay between frames into a frames per second count
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.