le_clock.h
Go to the documentation of this file.
18 * plus microseconds, and does not stop when the system is suspended (i.e., the clock continues to21 * Absolute time is given as time since the Epoch, 1970-01-01 00:00:00 +0000 (UTC) and is provided29 * characteristics, the relative time is useful for measuring the time between two or more events.31 * is stored. The relative time between these two events can always be calculated as B-A, and will48 * - All input time values are normalized (i.e., the usec value is less than 1 sec). All time values50 * - All input time values or scale factors are positive; a negative time value will not be returned.51 * - All input time values or scale factors are expected to have reasonable values (i.e., they will not57 * The current absolute time can be converted to a formatted string in either UTC time or local time,65 * - Add new formatting object to allow arbitrary time to be converted to a string, potentially with67 * - Add new objects and/or APIs to allow converting time to other formats, e.g. Linux broken down76 //--------------------------------------------------------------------------------------------------83 //--------------------------------------------------------------------------------------------------88 //--------------------------------------------------------------------------------------------------92 //--------------------------------------------------------------------------------------------------100 //--------------------------------------------------------------------------------------------------107 //--------------------------------------------------------------------------------------------------117 //--------------------------------------------------------------------------------------------------127 //--------------------------------------------------------------------------------------------------131 //--------------------------------------------------------------------------------------------------141 //--------------------------------------------------------------------------------------------------145 //--------------------------------------------------------------------------------------------------152 //--------------------------------------------------------------------------------------------------160 //--------------------------------------------------------------------------------------------------168 //--------------------------------------------------------------------------------------------------176 //--------------------------------------------------------------------------------------------------184 //--------------------------------------------------------------------------------------------------192 //--------------------------------------------------------------------------------------------------199 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------222 //--------------------------------------------------------------------------------------------------238 //--------------------------------------------------------------------------------------------------252 //--------------------------------------------------------------------------------------------------260 * If the formatted date/time string does not fit in the destination buffer, then the contents of268 //--------------------------------------------------------------------------------------------------281 //--------------------------------------------------------------------------------------------------298 //--------------------------------------------------------------------------------------------------313 //--------------------------------------------------------------------------------------------------315 * Generate a printable string representation of a given absolute date/time value as a local time322 * If the formatted date/time string does not fit in the destination buffer, then the contents of329 //--------------------------------------------------------------------------------------------------le_result_t le_clk_GetLocalDateTimeString(const char *formatSpecStrPtr, char *destStrPtr, size_t destSize, size_t *numBytesPtr)bool le_clk_GreaterThan(le_clk_Time_t timeA, le_clk_Time_t timeB)le_result_t le_clk_GetUTCDateTimeString(const char *formatSpecStrPtr, char *destStrPtr, size_t destSize, size_t *numBytesPtr)bool le_clk_Equal(le_clk_Time_t timeA, le_clk_Time_t timeB)le_clk_Time_t le_clk_Sub(le_clk_Time_t timeA, le_clk_Time_t timeB)le_clk_Time_t le_clk_GetAbsoluteTime(void)le_result_t le_clk_ConvertToUTCString(le_clk_Time_t time, const char *formatSpecStrPtr, char *destStrPtr, size_t destSize, size_t *numBytesPtr)Definition: le_clock.h:93le_clk_Time_t le_clk_Multiply(le_clk_Time_t timeA, int scaleFactor)le_result_t le_clk_ConvertToLocalTimeString(le_clk_Time_t time, const char *formatSpecStrPtr, char *destStrPtr, size_t destSize, size_t *numBytesPtr)le_clk_Time_t le_clk_Add(le_clk_Time_t timeA, le_clk_Time_t timeB)le_clk_Time_t le_clk_GetRelativeTime(void)