timer

package
Version: v0.0.0-...-7296e18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

The timer Package manages game timing by calling step so that the user can get FPS, and delta time from this pacakge

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAverageDelta

func GetAverageDelta() float32

GetAverageDelta returns the average time of each frame

func GetDelta

func GetDelta() float32

GetDelta returns the difference of time between the current frame and the last frame.

func GetFPS

func GetFPS() int

GetFPS returns the number of frames per second.

func GetTime

func GetTime() float32

GetTime get the current time from the length that the application has been running.

func Step

func Step()

Step should be called every game loop if rolling your own to keep track of time for the update function. It calculates fps and average fps.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL