hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::Chronometer Class Reference

Simple chronometer. Measures time. More...

#include <chronometer.hpp>

Public Member Functions

 Chronometer ()
 Create and start a chronometer.
 
void reset ()
 Reset the chronometer.
 
long tick ()
 Get the elapsed time as nanoseconds. More...
 
float tickAsMillis ()
 Get the elapsed time as milliseconds. More...
 
float tickAsSeconds ()
 Get the elapsed time as seconds. More...
 

Detailed Description

Simple chronometer. Measures time.

Definition at line 31 of file chronometer.hpp.

Member Function Documentation

long hx3d::Chronometer::tick ( )

Get the elapsed time as nanoseconds.

Returns
Nanoseconds

Definition at line 27 of file chronometer.cpp.

float hx3d::Chronometer::tickAsMillis ( )

Get the elapsed time as milliseconds.

Returns
Milliseconds

Definition at line 32 of file chronometer.cpp.

float hx3d::Chronometer::tickAsSeconds ( )

Get the elapsed time as seconds.

Returns
Seconds

Definition at line 36 of file chronometer.cpp.


The documentation for this class was generated from the following files: