Basic Time procedures Sleep and Get process tics.
aTime.h provides a platform independent interface for millisecond sleep, and for getting process tics.
Get the current tick count in milliseconds.
This call returns a number of milliseconds. Depending on the platform, this can be the number of milliseconds since the last boot, or from the epoc start. As such, this call should not be used as an external reference clock. It is accurate when used as a differential, i.e. internal, measurement only.
- unsigned long number of milliseconds elapsed.
aTime_MSSleep(const unsigned long msTime)¶
Sleep the current process for msTime milliseconds.
Sleeps the current process. This is not an active sleep, there are no signals which will “wake” the process.
- Function returns aErr values.
msTime: Milliseconds to sleep.
- Return Value
aErrNone: The call returned successfully.
aErrUnknown: Um unknown what went wrong.