| 
    Anklang-0.3.0.dev502+ga23511a1 anklang-0.3.0.dev502+ga23511a1
    
   ASE — Anklang Sound Engine (C++) 
   « « « Anklang Documentation  | 
 
Public Member Functions | |
| Stopwatch (const String &msg="") | |
| Automatically start stop watch.   | |
| void | start (const String &msg="") | 
Start or restart stop watch, printing msg later on.   | |
| void | stop (const String &msg="") | 
Stop stop watch, print msg.   | |
| double | seconds () const | 
| Provide seconds elapsed between start() and stop().   | |
| double | milliseconds () const | 
| Provide milliseconds elapsed between start() and stop().   | |
| ~Stopwatch () | |
Stop and print a previous msg if still running.   | |
Definition at line 74 of file platform.hh.
      
  | 
  explicit | 
| Ase::Stopwatch::~Stopwatch | ( | ) | 
Stop and print a previous msg if still running. 
Definition at line 683 of file platform.cc.
References stop().
| double Ase::Stopwatch::milliseconds | ( | ) | const | 
Provide milliseconds elapsed between start() and stop().
Definition at line 677 of file platform.cc.
Referenced by stop().
| double Ase::Stopwatch::seconds | ( | ) | const | 
Provide seconds elapsed between start() and stop().
Definition at line 670 of file platform.cc.
| void Ase::Stopwatch::start | ( | const String & | msg = "" | ) | 
Start or restart stop watch, printing msg later on. 
Definition at line 651 of file platform.cc.
References std::string::empty(), and Ase::timestamp_realtime().
Referenced by Stopwatch().
| void Ase::Stopwatch::stop | ( | const String & | msg = "" | ) | 
Stop stop watch, print msg. 
Definition at line 660 of file platform.cc.
References std::string::empty(), milliseconds(), and Ase::timestamp_realtime().
Referenced by ~Stopwatch().