struct SecondsClock_Time |
|
Structure to hold a time value in seconds plus nanoseconds
typedef struct SecondsClock_Time {
UInt32 secs;
// Seconds
UInt32 nsecs;
// Nanoseconds
} SecondsClock_Time;
SecondsClock_get() // module-wide |
|
Returns number of seconds since 1970 (the Unix epoch)
UInt32 SecondsClock_get();
DETAILS
The user must call Seconds_set() before making any calls to Seconds_get(),
otherwise the value returned by Seconds_get() will be meaningless.
SecondsClock_getTime() // module-wide |
|
Fills in a Seconds_Time structure with seconds and nanoseconds
elapsed since 1970 (the Unix epoch)
DETAILS
Seconds_set() must have been called before making any calls to
Seconds_getTime(), otherwise the value returned by Seconds_getTime()
will be meaningless.
SecondsClock_set() // module-wide |
|
Update the real time clock with number of seconds since 1970
Void SecondsClock_set(UInt32 seconds);
DETAILS
Note: This function is non-reentrant.
SecondsClock_setTime() // module-wide |
|
Update the real time clock with the number of seconds and nanoseconds
that have elapsed since 1970 (the Unix epoch). The Seconds_Time
structure passed to setTime() contains the seconds and nanoseconds
to set the real time clock to. This API can be called instead
of Seconds_set(), if finer granularity of the time is required
Module-Wide Built-Ins |
|
// Get this module's unique id
Bool SecondsClock_Module_startupDone();
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool SecondsClock_Module_hasMask();
// Test whether this module has a diagnostics mask
Bits16 SecondsClock_Module_getMask();
// Returns the diagnostics mask for this module
Void SecondsClock_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module