trtime Struct Reference
[Utility functions for time operations]

#include <tr_time.h>


Detailed Description

Time structure.

Different hardware architectures may represent time in formats that are most efficient and suitable for that hardware. We impose no requirements except for two functions that can convert this hardware dependent time structure into units of seconds and vice-versa The trtime_t structure consists of two elements:

  1. A subsecond unit (could be milli-seconds, nano-seconds,etc.)
  2. A supersecond unit ( could be a unit of 1 second, 10 secs, 1 minute etc.
This choice of time is kept deliberately vague, since the application is an embedded system, where these functions have to be fast, take advantage of the hardware, and cannot waste cycles converting time units from the hardware representation to a standard form.

Definition at line 66 of file tr_time.h.

Data Fields

uint32_t units
subtime_t subunits


Field Documentation

uint32_t trtime::units

Time in secs preferably (but no requirement).

Definition at line 67 of file tr_time.h.

subtime_t trtime::subunits

Sub-seconds: hardware dependent.

Definition at line 69 of file tr_time.h.


The documentation for this struct was generated from the following file:
TiROS User Manual: Last Updated on Fri Jul 20 10:52:24 2007