Change interface, more logical naming

This commit is contained in:
2024-01-23 19:05:20 +01:00
parent 25556263d3
commit d9233605f9
2 changed files with 7 additions and 6 deletions

View File

@ -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; }
};