21 #ifndef RTT_TIME_SERVICE_HPP 22 #define RTT_TIME_SERVICE_HPP 25 #include "../rtt-config.h" 77 static bool Release();
97 ticks getTicks()
const;
106 ticks
ticksGet( ticks &relativeTime )
const {
return getTicks( relativeTime ); }
114 ticks getTicks( ticks &relativeTime )
const;
122 ticks ticksSince( ticks relativeTime )
const;
133 Seconds
secondsGet( ticks &relativeTime )
const {
return getSeconds(relativeTime); }
143 Seconds getSeconds( ticks &relativeTime )
const;
151 Seconds secondsSince( ticks relativeTime )
const;
157 Seconds secondsChange( Seconds delta );
163 ticks ticksChange( ticks delta );
170 void enableSystemClock(
bool yes_no );
176 bool systemClockEnabled()
const;
183 nsecs getNSecs()
const;
191 nsecs getNSecs( nsecs &relativeTime )
const;
198 static ticks nsecs2ticks(
const nsecs m );
203 static nsecs ticks2nsecs(
const ticks t );
long secs
An integer representation of seconds.
The TimeService is used for system-wide time keeping and conversions.
long long ticks
The type for the systems clock tick.
static const ticks InfiniteTicks
The largest number representable in ticks.
long usecs
An integer representation of microseconds.
ticks ticksGet() const
Get current tick of the System clock.
static const nsecs InfiniteNSecs
The largest number representable in nsecs.
Seconds secondsGet(ticks &relativeTime) const
Get the time in seconds passed since a certain moment.
static const Seconds InfiniteSeconds
The largest number representable in Seconds.
ticks ticksGet(ticks &relativeTime) const
Get clicks passed since a certain moment.
double Seconds
The type used to store SI unit time keeping.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
long long nsecs
An integer representation of nanoseconds.
long msecs
An integer representation of miliseconds.