We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e94616 commit d2dc8f9Copy full SHA for d2dc8f9
CppTimer.h
@@ -44,8 +44,8 @@ class CppTimer
44
* @param type Either PERIODIC or ONESHOT
45
**/
46
virtual void startns(long nanosecs, cppTimerType_t t = PERIODIC) {
47
- if (running) return;
48
if (uthread.joinable()) uthread.join();
+ if (running) return;
49
timerType = t;
50
if (fd < 0)
51
throw("Could not start timer");
@@ -81,8 +81,8 @@ class CppTimer
81
82
83
virtual void startms(long millisecs, cppTimerType_t t = PERIODIC) {
84
85
86
87
88
0 commit comments