MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / elapsed

Method elapsed

libraries/Stopwatch_RT/StopWatch.cpp:54–61  ·  view source on GitHub ↗

made const as printTo expect a const object.

Source from the content-addressed store, hash-verified

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

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64