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

Method start

libraries/Stopwatch_RT/StopWatch.cpp:24–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24void StopWatch::start()
25{
26 if ((_state == StopWatch::RESET) || (_state == StopWatch::STOPPED))
27 {
28 _state = StopWatch::RUNNING;
29 uint32_t t = _gettime();
30 _startTime += t - _stopTime;
31 _stopTime = t;
32 }
33}
34
35
36void StopWatch::stop()

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36