![]() |
This resembles a convient and portable timer with microseconds resolution.
Public Member Functions | |
| Timer () | |
| Create a new timer. | |
| ~Timer () | |
| void | start () |
| void | stop () |
| void | reset () |
| double | elapsed () const |
| Get the elapsed time. | |
| double | elapsed (unsigned long& microseconds) const |
| Get the elapsed time. | |
|
|
Create a new timer. Also starts timing by calling start() implicitly. |
|
|
|
|
|
Get the elapsed time.
|
|
|
Get the elapsed time.
|
|
|
|
|
|
|
|
|
|