Cafu Engine
TimerT Class Reference

A platform independent timer class that allows to measure the time passed since its construction or the last measuring point. More...

#include "Util.hpp"

Public Member Functions

 TimerT ()
 The constructor. It initializes the timer. More...
 
double GetSecondsSinceLastCall ()
 This function returns the time elapsed since the function was last called. More...
 
double GetSecondsSinceCtor () const
 This function returns the time elapsed since the timer was constructed. More...
 

Detailed Description

A platform independent timer class that allows to measure the time passed since its construction or the last measuring point.

Constructor & Destructor Documentation

TimerT::TimerT ( )

The constructor. It initializes the timer.

Member Function Documentation

double TimerT::GetSecondsSinceCtor ( ) const

This function returns the time elapsed since the timer was constructed.

The return value is the elapsed time in seconds.

double TimerT::GetSecondsSinceLastCall ( )

This function returns the time elapsed since the function was last called.

The return value is the elapsed time in seconds. The very first call of this function returns always 0.


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