![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
Class to store a time value. More...
#include <Clock.hpp>
Public Member Functions | |
Time (const uint64 nsec) | |
Constructor. More... | |
float64 | asSeconds () const |
Get the time value as seconds. More... | |
uint32 | asMilliseconds () const |
Get the time value as milliseconds. More... | |
uint64 | asMicroseconds () const |
Get the time value as microseconds. More... | |
uint64 | asNanoseconds () const |
Get the time value as nanoseconds. More... | |
jop::Clock::Time::Time | ( | const uint64 | nsec | ) |
Constructor.
nsec | The initial time value in nanoseconds |
uint64 jop::Clock::Time::asMicroseconds | ( | ) | const |
Get the time value as microseconds.
uint32 jop::Clock::Time::asMilliseconds | ( | ) | const |
Get the time value as milliseconds.
uint64 jop::Clock::Time::asNanoseconds | ( | ) | const |
Get the time value as nanoseconds.
float64 jop::Clock::Time::asSeconds | ( | ) | const |
Get the time value as seconds.