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 will47 * - All input time values are normalized (i.e., the usec value is less than 1 sec). All time values49 * - All input time values or scale factors are positive; a negative time value will not be returned.50 * - All input time values or scale factors are expected to have reasonable values (i.e., they will not56 * The current absolute time can be converted to a formatted string in either UTC time or local time,64 * - Add new formatting object to allow arbitrary time to be converted to a string, potentially with66 * - Add new objects and/or APIs to allow converting time to other formats, e.g. Linux broken down75 //--------------------------------------------------------------------------------------------------82 //--------------------------------------------------------------------------------------------------87 //--------------------------------------------------------------------------------------------------91 //--------------------------------------------------------------------------------------------------99 //--------------------------------------------------------------------------------------------------106 //--------------------------------------------------------------------------------------------------116 //--------------------------------------------------------------------------------------------------126 //--------------------------------------------------------------------------------------------------130 //--------------------------------------------------------------------------------------------------140 //--------------------------------------------------------------------------------------------------144 //--------------------------------------------------------------------------------------------------151 //--------------------------------------------------------------------------------------------------159 //--------------------------------------------------------------------------------------------------167 //--------------------------------------------------------------------------------------------------175 //--------------------------------------------------------------------------------------------------182 //--------------------------------------------------------------------------------------------------190 //--------------------------------------------------------------------------------------------------197 //--------------------------------------------------------------------------------------------------205 //--------------------------------------------------------------------------------------------------221 //--------------------------------------------------------------------------------------------------235 //--------------------------------------------------------------------------------------------------243 * If the formatted date/time string does not fit in the destination buffer, then the contents of251 //--------------------------------------------------------------------------------------------------264 //--------------------------------------------------------------------------------------------------281 //--------------------------------------------------------------------------------------------------296 //--------------------------------------------------------------------------------------------------298 * Generate a printable string representation of a given absolute date/time value as a local time305 * If the formatted date/time string does not fit in the destination buffer, then the contents of312 //--------------------------------------------------------------------------------------------------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)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:92le_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)