LibJuno 0.42.0
LibJuno is a lightweight C99 library designed specifically for embedded systems.
|
#include <time_api.h>
Data Fields | |
JUNO_TIMESTAMP_RESULT_T(* | Now )(JUNO_TIME_T *ptTime) |
Get the current time as specified by the implementation. | |
JUNO_STATUS_T(* | AddTime )(JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T *ptRetTime, JUNO_TIMESTAMP_T tTimeToAdd) |
Perform addition with time. | |
JUNO_STATUS_T(* | SubtractTime )(JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T *ptRetTime, JUNO_TIMESTAMP_T tTimeToSubtract) |
Perform subtraction with time. | |
JUNO_STATUS_T(* | SleepTo )(JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tTimeToWakeup) |
Sleep this thread until a specific time. | |
JUNO_STATUS_T(* | Sleep )(JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tDuration) |
Sleep this thread for a duration. | |
JUNO_TIME_NANOS_RESULT_T(* | TimestampToNanos )(JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tTime) |
Convert a timestamp to nanoseconds. | |
JUNO_TIME_MICROS_RESULT_T(* | TimestampToMicros )(JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tTime) |
Convert a timestamp to microsconds. | |
JUNO_TIME_MILLIS_RESULT_T(* | TimestampToMillis )(JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tTime) |
Convert a timestamp to milliseconds. | |
JUNO_TIMESTAMP_RESULT_T(* | NanosToTimestamp )(JUNO_TIME_T *ptTime, JUNO_TIME_NANOS_T iNanos) |
Convert nanoseconds to a timestamp. | |
JUNO_TIMESTAMP_RESULT_T(* | MicrosToTimestamp )(JUNO_TIME_T *ptTime, JUNO_TIME_MICROS_T iMicros) |
Convert microseconds to a timestamp. | |
JUNO_TIMESTAMP_RESULT_T(* | MillisToTimestamp )(JUNO_TIME_T *ptTime, JUNO_TIME_MILLIS_T iMillis) |
Convert milliseconds to a timestamp. | |
JUNO_RESULT_F64_T(* | TimestampToDouble )(JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tTimestamp) |
Convert a timestamp to a double. | |
JUNO_TIMESTAMP_RESULT_T(* | DoubleToTimestamp )(JUNO_TIME_T *ptTime, double dTimestamp) |
Convert a double to a timestamp. | |
JUNO_STATUS_T(* JUNO_TIME_API_TAG::AddTime) (JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T *ptRetTime, JUNO_TIMESTAMP_T tTimeToAdd) |
Perform addition with time.
JUNO_TIMESTAMP_RESULT_T(* JUNO_TIME_API_TAG::DoubleToTimestamp) (JUNO_TIME_T *ptTime, double dTimestamp) |
Convert a double to a timestamp.
JUNO_TIMESTAMP_RESULT_T(* JUNO_TIME_API_TAG::MicrosToTimestamp) (JUNO_TIME_T *ptTime, JUNO_TIME_MICROS_T iMicros) |
Convert microseconds to a timestamp.
JUNO_TIMESTAMP_RESULT_T(* JUNO_TIME_API_TAG::MillisToTimestamp) (JUNO_TIME_T *ptTime, JUNO_TIME_MILLIS_T iMillis) |
Convert milliseconds to a timestamp.
JUNO_TIMESTAMP_RESULT_T(* JUNO_TIME_API_TAG::NanosToTimestamp) (JUNO_TIME_T *ptTime, JUNO_TIME_NANOS_T iNanos) |
Convert nanoseconds to a timestamp.
JUNO_TIMESTAMP_RESULT_T(* JUNO_TIME_API_TAG::Now) (JUNO_TIME_T *ptTime) |
Get the current time as specified by the implementation.
JUNO_STATUS_T(* JUNO_TIME_API_TAG::Sleep) (JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tDuration) |
Sleep this thread for a duration.
JUNO_STATUS_T(* JUNO_TIME_API_TAG::SleepTo) (JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tTimeToWakeup) |
Sleep this thread until a specific time.
JUNO_STATUS_T(* JUNO_TIME_API_TAG::SubtractTime) (JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T *ptRetTime, JUNO_TIMESTAMP_T tTimeToSubtract) |
Perform subtraction with time.
JUNO_RESULT_F64_T(* JUNO_TIME_API_TAG::TimestampToDouble) (JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tTimestamp) |
Convert a timestamp to a double.
JUNO_TIME_MICROS_RESULT_T(* JUNO_TIME_API_TAG::TimestampToMicros) (JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tTime) |
Convert a timestamp to microsconds.
JUNO_TIME_MILLIS_RESULT_T(* JUNO_TIME_API_TAG::TimestampToMillis) (JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tTime) |
Convert a timestamp to milliseconds.
JUNO_TIME_NANOS_RESULT_T(* JUNO_TIME_API_TAG::TimestampToNanos) (JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tTime) |
Convert a timestamp to nanoseconds.