#include <SimTime.h>
Public Member Functions | |
| SimTimer () | |
| Default costructor: starts the timer at the current time instant. | |
| SimTimer (Time alreadyElapsed) | |
| Long int constructor: starts the timer at the current instant, storing the elapsed time passed as argument. | |
| SimTimer (const SimTimer &t) | |
| Copy constructor. | |
| SimTimer & | operator= (const SimTimer &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::SimTimer::SimTimer | ( | ) |
Default costructor: starts the timer at the current time instant.
1.5.6