20#ifndef __FPSDK_COMMON_TIME_HPP__
21#define __FPSDK_COMMON_TIME_HPP__
59void Sleep(
const uint32_t duration);
75 RosTime(
const uint32_t sec,
const uint32_t nsec);
void Sleep(const uint32_t duration)
Sleep for a bit.
uint64_t GetTicks()
Get ticks [ms], monotonic time.
double GetSecs()
Get seconds [s], monotonic time.
Minimal ros::Time() / rplcpp::Time implementation (that doesn't throw)
RosTime(const uint32_t sec, const uint32_t nsec)
Constructor.
uint32_t nsec_
Nanoseconds part of time (should be in range 0-999999999)
uint32_t sec_
Seconds part of time.
double ToSec() const
Convert to seconds.
bool IsZero() const
Check if time is zero (invalid, unset)