logog
logger optimized for games
Timer Class Reference

#include <timer.hpp>

+ Inheritance diagram for Timer:

Public Member Functions

 Timer ()
 
LOGOG_TIME Get ()
 
void Set (LOGOG_TIME time)
 
- Public Member Functions inherited from Object
 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 Public Member Functions inherited from Object
static void * Allocate (size_t nSize)
 
static void Deallocate (void *ptr)
 

Detailed Description

A high-resolution timer. Reports in seconds.

Constructor & Destructor Documentation

Timer ( )

Member Function Documentation

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.

See also
LOGOG_TIME
void Set ( LOGOG_TIME  time)

Sets the current time for this timer.

Member Data Documentation

LOGOG_TIME m_fStartTime
protected

Zero, if no calls to Set() have been made; else the value of the previous call to Set().


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