made const as printTo expect a const object.
| 52 | |
| 53 | // made const as printTo expect a const object. |
| 54 | uint32_t StopWatch::elapsed() const |
| 55 | { |
| 56 | if (_state == StopWatch::RUNNING) |
| 57 | { |
| 58 | return _gettime() - _startTime; |
| 59 | } |
| 60 | return _stopTime - _startTime; |
| 61 | } |
| 62 | |
| 63 | |
| 64 | char StopWatch::getUnits() |