Meteor2D  dev internal
Meteor is a lightweight 2D game engine.
Loading...
Searching...
No Matches
meteor::MTime Class Reference

This class handles time function. More...

#include <time.h>

Inheritance diagram for meteor::MTime:

Static Public Member Functions

static void updateTime ()
 updates internal timer
 
static double getDeltaTime ()
 returns the time between last and last-to-last frame.
 
static int getFrameTime ()
 
static float getTimeScale ()
 
static void setTimeScale (float val)
 set time scale.
 

Additional Inherited Members

- Public Member Functions inherited from meteor::MEntity
virtual bool equals (MEntity *other)
 Checks equality between two entities.
 
std::string getName ()
 
void setName (std::string name)
 Sets name of entity.
 
virtual std::string toString ()
 Get this object as a string.
 
- Protected Attributes inherited from meteor::MEntity
std::string name
 

Detailed Description

This class handles time function.

Member Function Documentation

◆ getFrameTime()

static int meteor::MTime::getFrameTime ( )
inlinestatic
Returns
current frame time

◆ getTimeScale()

static float meteor::MTime::getTimeScale ( )
inlinestatic
Returns
time scale

◆ setTimeScale()

static void meteor::MTime::setTimeScale ( float val)
inlinestatic

set time scale.

Parameters
val