Nebula
Loading...
Searching...
No Matches
Timing Namespace Reference

Typedefs

typedef double Time
 the time datatype
 
typedef int Tick
 the tick datatype (one tick == 1 millisecond)
 

Functions

Time TicksToSeconds (Tick ticks)
 Convert ticks to seconds.
 
Tick SecondsToTicks (Time t)
 Convert seconds to ticks.
 
void Sleep (Time t)
 Put current thread to sleep for specified amount of seconds.
 

Typedef Documentation

◆ Tick

typedef int Timing::Tick

the tick datatype (one tick == 1 millisecond)

◆ Time

typedef double Timing::Time

the time datatype

Function Documentation

◆ SecondsToTicks()

Tick Timing::SecondsToTicks ( Time t)
inline

Convert seconds to ticks.

◆ Sleep()

void Timing::Sleep ( Time t)
inline

Put current thread to sleep for specified amount of seconds.

◆ TicksToSeconds()

Time Timing::TicksToSeconds ( Tick ticks)
inline

Convert ticks to seconds.