Change interface, more logical naming
This commit is contained in:
@ -19,8 +19,9 @@ namespace sc {
|
||||
timer(void(*callback)(union sigval), double time, bool repeat = false);
|
||||
~timer();
|
||||
|
||||
void time(struct itimerspec& cur_value) const;
|
||||
double time() const;
|
||||
void time_left(struct itimerspec& cur_value) const;
|
||||
double time_left() const;
|
||||
double time() const { return _time; }
|
||||
bool is_armed() const;
|
||||
bool repeat() const { return _repeat; }
|
||||
};
|
||||
|
Reference in New Issue
Block a user