logog
logger optimized for games
|
#include <timer.hpp>
Public Member Functions | |
Timer () | |
LOGOG_TIME | Get () |
void | Set (LOGOG_TIME time) |
![]() | |
Object () | |
virtual | ~Object () |
void * | operator new (size_t nSize) |
void * | operator new[] (size_t nSize) |
void | operator delete (void *ptr) |
void | operator delete[] (void *ptr) |
Protected Attributes | |
LOGOG_TIME | m_fStartTime |
Additional Inherited Members | |
![]() | |
static void * | Allocate (size_t nSize) |
static void | Deallocate (void *ptr) |
A high-resolution timer. Reports in seconds.
Timer | ( | ) |
LOGOG_TIME Get | ( | ) |
Returns the offset from the time since the creation of the timer, or the time set by the most recent Set() call. Time is assumed to be a value in LOGOG_TIME seconds.
void Set | ( | LOGOG_TIME | time | ) |
Sets the current time for this timer.
|
protected |