added uptime seconds functions
This commit is contained in:
@ -67,6 +67,13 @@ ReturnValue_t Clock::getUptime(uint32_t* uptimeMs) {
|
||||
return HasReturnvaluesIF::RETURN_OK;
|
||||
}
|
||||
|
||||
|
||||
uint32_t Clock::getUptimeSeconds() {
|
||||
timeval uptime = getUptime();
|
||||
return uptime.tv_sec;
|
||||
}
|
||||
|
||||
|
||||
ReturnValue_t Clock::getClock_usecs(uint64_t* time) {
|
||||
timeval time_timeval;
|
||||
ReturnValue_t result = getClock_timeval(&time_timeval);
|
||||
|
Reference in New Issue
Block a user