improved structure a bit
This commit is contained in:
parent
5169c09fd8
commit
e7ae35c659
@ -4,7 +4,9 @@
|
|||||||
|
|
||||||
Timekeeper * Timekeeper::myinstance = nullptr;
|
Timekeeper * Timekeeper::myinstance = nullptr;
|
||||||
|
|
||||||
Timekeeper::Timekeeper() : offset( { 0, 0 }) {}
|
Timekeeper::Timekeeper() : offset( { 0, 0 } ) {}
|
||||||
|
|
||||||
|
Timekeeper::~Timekeeper() {}
|
||||||
|
|
||||||
const timeval& Timekeeper::getOffset() const {
|
const timeval& Timekeeper::getOffset() const {
|
||||||
return offset;
|
return offset;
|
||||||
@ -21,8 +23,6 @@ void Timekeeper::setOffset(const timeval& offset) {
|
|||||||
this->offset = offset;
|
this->offset = offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
Timekeeper::~Timekeeper() {}
|
|
||||||
|
|
||||||
timeval Timekeeper::ticksToTimeval(TickType_t ticks) {
|
timeval Timekeeper::ticksToTimeval(TickType_t ticks) {
|
||||||
timeval uptime;
|
timeval uptime;
|
||||||
uptime.tv_sec = ticks / configTICK_RATE_HZ;
|
uptime.tv_sec = ticks / configTICK_RATE_HZ;
|
||||||
|
Loading…
Reference in New Issue
Block a user