Ocular Engine
Ocular::Core::Clock Class Reference

Public Member Functions

void tick ()
 
float getDelta ()
 
uint64_t getEpochMS ()
 
uint64_t getEpochNS ()
 
uint64_t getElapsedMS ()
 
uint64_t getElapsedNS ()
 
DateTime getDateTime ()
 

Member Function Documentation

DateTime Ocular::Core::Clock::getDateTime ( )

Returns current system date and time.

float Ocular::Core::Clock::getDelta ( )

Returns the time, in seconds, it took to complete the last frame.

uint64_t Ocular::Core::Clock::getElapsedMS ( )

Returns the number of milliseconds since Clock creation.

uint64_t Ocular::Core::Clock::getElapsedNS ( )

Returns the number of nanoseconds since Clock creation.

uint64_t Ocular::Core::Clock::getEpochMS ( )

Returns the number of milliseconds since epoch (January 1, 1970).

uint64_t Ocular::Core::Clock::getEpochNS ( )

Returns the number of nanoseconds since epoch (January 1, 1970).

void Ocular::Core::Clock::tick ( )

Calculates and updates the delta time.

Note
This method should only be called once per frame (at the start) and only by it's explicit owner.

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