All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
star::Stopwatch Class Referencefinal

#include <Stopwatch.h>

Collaboration diagram for star::Stopwatch:
Collaboration graph

Public Member Functions

 Stopwatch ()
 ~Stopwatch ()
void Update (const Context &context)
bool CreateTimer (const tstring &name, float targetTime, bool countingDown, bool loop, std::function< void()> func, bool paused=false)
bool RemoveTimer (const tstring &name)
void PauseTimer (const tstring &name, bool paused)
void SetCountingDownTimer (const tstring &name, bool countingDown)
void SetLoopTimer (const tstring &name, bool looping)
void ResetTimer (const tstring &name, bool paused=false)
void SetTargetTimeTimer (const tstring &name, float targetTime, bool reset=true, bool paused=false)
void SetFunctionTimer (const tstring &name, std::function< void()> func)
int GetTimerMinutes (const tstring &name) const
int GetTimerSeconds (const tstring &name) const
int GetTimerTotalSeconds (const tstring &name) const
double GetTimerAccurateTime (const tstring &name) const

Constructor & Destructor Documentation

star::Stopwatch::Stopwatch ( )
star::Stopwatch::~Stopwatch ( )

Member Function Documentation

bool star::Stopwatch::CreateTimer ( const tstring name,
float  targetTime,
bool  countingDown,
bool  loop,
std::function< void()>  func,
bool  paused = false 
double star::Stopwatch::GetTimerAccurateTime ( const tstring name) const
int star::Stopwatch::GetTimerMinutes ( const tstring name) const
int star::Stopwatch::GetTimerSeconds ( const tstring name) const
int star::Stopwatch::GetTimerTotalSeconds ( const tstring name) const
void star::Stopwatch::PauseTimer ( const tstring name,
bool  paused 
bool star::Stopwatch::RemoveTimer ( const tstring name)
void star::Stopwatch::ResetTimer ( const tstring name,
bool  paused = false 
void star::Stopwatch::SetCountingDownTimer ( const tstring name,
bool  countingDown 
void star::Stopwatch::SetFunctionTimer ( const tstring name,
std::function< void()>  func 
void star::Stopwatch::SetLoopTimer ( const tstring name,
bool  looping 
void star::Stopwatch::SetTargetTimeTimer ( const tstring name,
float  targetTime,
bool  reset = true,
bool  paused = false 
void star::Stopwatch::Update ( const Context context)

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