10#ifndef __RTTimespec_h__
11#define __RTTimespec_h__ included
17#ifndef __RTObject_class_h__
18#include <RTObject_class.h>
77#define RTType_RTTimespec ( RTTimespec::classData )
100#include <RTTimespec.inl>
Definition: RTInterval.h:26
A type descriptor providing information about a type.
Definition: RTObject_class.h:64
A time value which can represent either an absolute or relative time.
Definition: RTTimespec.h:29
void normalize(void)
Normalize the time value so that as many seconds as possible are stored in the tv_sec field and remai...
long tv_sec
Seconds.
Definition: RTTimespec.h:31
long ticksFromNow(long nanoseconds_per_tick) const
Get the number of "ticks" which is between this time value and the current time.
RTTimespec(void)
Construct a zero time value.
Definition: RTTimespec.inl:21
long tv_nsec
Nanoseconds.
Definition: RTTimespec.h:33
static void getclock(RTTimespec &tspec)
Get the current time.
static const RTTimespec zero
Static constant for a zero time value.
Definition: RTTimespec.h:72
static const RTObject_class classData
Type descriptor for an RTTimespec.
Definition: RTTimespec.h:75
Definition: RTTimespec.h:90