Hummingbird Framework
 All Classes Functions Variables Modules Pages
hb::Time Class Reference

Class for representing intervals of time. More...

#include <Time.h>

Collaboration diagram for hb::Time:

Public Member Functions

 Time ()
 Default constructor.
 
 ~Time ()
 Class destructor.
 
double asSeconds () const
 Get Time as seconds. More...
 
int asMilliseconds () const
 Get Time as milliseconds. More...
 
long long asMicroseconds () const
 Get Time as microseconds. More...
 

Static Public Member Functions

static Time seconds (double seconds)
 Construct Time from seconds.
 
static Time milliseconds (int milliseconds)
 Construct Time from milliseconds.
 
static Time microseconds (long long microseconds)
 Construct Time from microseconds.
 

Static Public Attributes

static Time deltaTime
 Game delta Time.
 

Detailed Description

Class for representing intervals of time.

This class has microseconds precision.

Member Function Documentation

long long hb::Time::asMicroseconds ( ) const

Get Time as microseconds.

Returns
Number of microseconds represented.
int hb::Time::asMilliseconds ( ) const

Get Time as milliseconds.

Returns
Number of milliseconds represented.
double hb::Time::asSeconds ( ) const

Get Time as seconds.

Returns
Number of seconds represented.

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