#include <Time.h>
Public Member Functions | |
| Timer () | |
| Default costructor: starts the timer at the current time instant. | |
| Timer (Time alreadyElapsed) | |
| Long int constructor: starts the timer at the current instant, storing the elapsed time passed as argument. | |
| Timer (const Timer &t) | |
| Copy constructor. | |
| Timer & | operator= (const Timer &t) |
| Assigment operator =. | |
| void | reset () |
| Restarts the timer at the current instant. | |
| void | pause () |
| Pauses the timer. It is considered only if is NOT in _pause, It pauses the timer storing the current elapsed time. | |
| void | resume () |
| Continue: it is considered only if is in _pause, continues to take the time. | |
| Time | get () |
| Gets the current value of the timer. | |
| string | print () |
| Prints the current value of the timer. | |
| Decimal | freq () |
| Computes the frequency. | |
| string | printFreq () |
| Prints the current frequency of the timer. | |
| MipBaselib::Timer::Timer | ( | ) |
Default costructor: starts the timer at the current time instant.
1.5.6