qtime

QNX SDP8.0Building Embedded SystemsConfigurationDeveloper

Information about the system's timebase, and other time-related information

The startup library's init_qtime() function fills in the qtime data structures, which contain the following fields:
cycles_per_sec
For ClockCycles().
nsec_tod_adjust
When added to the value in nsec, gives the number of nanoseconds from the start of the epoch (1970).
nsec_inc
The number of nanoseconds per tick (the tick period).
boot_time
The time when the system was booted, in seconds since Jan 1 1970 00:00:00 GMT.
If you call ClockTime() to set the time of day, the kernel checks to see if this field is zero. If so, the kernel sets the field to the appropriate value. All startup programs support a -T option that prevents the setting of this field, so the kernel can set it the first time you call ClockTime(). This feature is useful if the RTC hardware isn't in UTC.
adjust
Set to zero at startup. Contains any current timebase adjustment runtime parameters (as specified by the kernel call ClockAdjust()).
timer_period
Not used.
timer_scale
Not used.
intr
Contains the clock interrupt vector on CPU0.
epoch
Currently set to 1970, but not used.
flags
Not used.
rr_interval_mul
Reserved.
timer_load_max
The maximum value that can be programmed into the hardware timer for system ticks.
spare
Not used.
Page updated: