logog
logger optimized for games
TimeStamp Class Reference

#include <formatter.hpp>

+ Inheritance diagram for TimeStamp:

Public Member Functions

const char * Get (const char *fmt=LOGOG_DEFAULT_TIME_FORMAT)
 
- 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

char cTimeString [LOGOG_TIME_STRING_MAX]
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static void * Allocate (size_t nSize)
 
static void Deallocate (void *ptr)
 

Detailed Description

A helper object for generating a current timestamp as a string.

Member Function Documentation

const char* Get ( const char *  fmt = LOGOG_DEFAULT_TIME_FORMAT)

Returns a pointer to a string representing the current time. Note! This pointer is only valid while this object is valid – if you destroy this object, this pointer is no longer valid.

Member Data Documentation

char cTimeString[LOGOG_TIME_STRING_MAX]
protected

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