Manak  2.0.0
manak::Timer Class Reference

This class handles all the time related queries of libGDL. More...

Static Public Member Functions

static uint64_t & CTime ()
 Get-set current timing. More...
 
static PMeasure Deinitialize (size_t iterations)
 Deinitialize and register. More...
 
static bool EndIter (size_t &iterations)
 Mark end of the iteration. More...
 
static PMeasure GetStats (size_t iterations)
 Get statistics of current timer instance. More...
 
static std::string getTimeStamp (bool removeSpaces=false)
 Returns current time-stamp as string. More...
 
static void Initialize ()
 Initialize a new Timer instance. More...
 
static uint64_t & Max ()
 Get-set max time. More...
 
static uint64_t microtimer ()
 Returns the time in microseconds. More...
 
static uint64_t & Min ()
 Get-set min time. More...
 
static void replaceAll (std::string &str, const std::string &from, const std::string &to)
 Replace all occurrences. More...
 
static uint64_t & Start ()
 Get-set start time. More...
 
static void StartIter ()
 Mark start of the iteration. More...
 
static void StartTimer ()
 Start timer. More...
 
static bool & StateInit ()
 Get-set initialization state. More...
 
static bool & StateIter ()
 Get-set iteration state. More...
 
static bool & StateTimer ()
 Get-set timer state. More...
 
static void StopTimer ()
 Stop timer. More...
 
static uint64_t & TotalTime ()
 Get-set total time. More...
 

Detailed Description

This class handles all the time related queries of libGDL.

Definition at line 84 of file timer.hpp.

Member Function Documentation

static uint64_t& manak::Timer::CTime ( )
inlinestatic

Get-set current timing.

static PMeasure manak::Timer::Deinitialize ( size_t  iterations)
inlinestatic

Deinitialize and register.

static bool manak::Timer::EndIter ( size_t &  iterations)
inlinestatic

Mark end of the iteration.

static PMeasure manak::Timer::GetStats ( size_t  iterations)
inlinestatic

Get statistics of current timer instance.

static std::string manak::Timer::getTimeStamp ( bool  removeSpaces = false)
inlinestatic

Returns current time-stamp as string.

Returns
std::string
static void manak::Timer::Initialize ( )
inlinestatic

Initialize a new Timer instance.

static uint64_t& manak::Timer::Max ( )
inlinestatic

Get-set max time.

static uint64_t manak::Timer::microtimer ( )
inlinestatic

Returns the time in microseconds.

Returns
uint64_t Time in microseconds

Definition at line 92 of file timer.hpp.

static uint64_t& manak::Timer::Min ( )
inlinestatic

Get-set min time.

static void manak::Timer::replaceAll ( std::string &  str,
const std::string &  from,
const std::string &  to 
)
inlinestatic

Replace all occurrences.

static uint64_t& manak::Timer::Start ( )
inlinestatic

Get-set start time.

static void manak::Timer::StartIter ( )
inlinestatic

Mark start of the iteration.

static void manak::Timer::StartTimer ( )
inlinestatic

Start timer.

static bool& manak::Timer::StateInit ( )
inlinestatic

Get-set initialization state.

static bool& manak::Timer::StateIter ( )
inlinestatic

Get-set iteration state.

static bool& manak::Timer::StateTimer ( )
inlinestatic

Get-set timer state.

static void manak::Timer::StopTimer ( )
inlinestatic

Stop timer.

static uint64_t& manak::Timer::TotalTime ( )
inlinestatic

Get-set total time.


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