13 #include "../../include/ecl/time/timestamp.hpp" 14 #include "../../include/ecl/time/stopwatch.hpp" 15 #ifdef ECL_HAS_TIMESTAMP 26 StopWatch::StopWatch() {
35 void StopWatch::restart()
38 split_time = start_time;
41 TimeStamp StopWatch::elapsed()
43 TimeStamp current_time;
44 return ( current_time - start_time );
47 TimeStamp StopWatch::split()
49 TimeStamp last_time = split_time;
51 return (split_time - last_time);
Embedded control libraries.