Hymn to Beauty
C++ 3D Engine
Utility Namespace Reference

Classes

class  LockBox
 
class  Queue
 Queue container class. More...
 
class  Window
 

Functions

template<typename T >
void swap (LockBox< T > &first, LockBox< T > &second)
 Swap two lockboxes with each other. More...
 
void InitTime ()
 Initialize the starting time. More...
 
double GetTime ()
 Get the current time. More...
 

Function Documentation

◆ GetTime()

double Utility::GetTime ( )

Get the current time.

Returns
Time since the program started, in seconds.

◆ InitTime()

void Utility::InitTime ( )

Initialize the starting time.

◆ swap()

template<typename T >
void Utility::swap ( LockBox< T > &  first,
LockBox< T > &  second 
)

Swap two lockboxes with each other.

Parameters
firstFirst lockbox to swap.
secondSecond lockbox to swap.