MicrOS
|
Go to the source code of this file.
Classes | |
struct | tm |
Time structure. More... | |
Macros | |
#define | CLOCKS_PER_SEC 1000 |
Clock ticks per second. More... | |
Typedefs | |
typedef uint32_t | clock_t |
Clock type. More... | |
typedef uint64_t | time_t |
Time type. More... | |
Functions | |
clock_t | clock () |
Clock program. More... | |
double | difftime (time_t end, time_t beginning) |
Return difference between two times. More... | |
time_t | mktime (tm *timeptr) |
Convert tm structure to time_t. More... | |
time_t | time (time_t *timer) |
Get current time. More... | |
tm * | gmtime (const time_t *timer) |
Convert time_t to tm as UTC time. More... | |
uint32_t | __time_get_day_of_year (uint32_t day, uint32_t month, uint32_t year) |
Calculates time of the year. More... | |
uint32_t | __time_get_day_of_week (uint32_t day, uint32_t month, uint32_t year) |
Calculates time of the week. More... | |
Variables | |
tm | converted_time |
Internal variable used during time conversions. More... | |
#define CLOCKS_PER_SEC 1000 |
Clock ticks per second.
typedef uint64_t time_t |
Time type.
Calculates time of the week.
Calculates time of the week based on the passed date.
day | Day in the date to be calculated. |
month | Month in the date to be calculated. |
year | Year in the date to be calculated. |
Calculates time of the year.
Calculates time of the year based on the passed date.
day | Day in the date to be calculated. |
month | Month in the date to be calculated. |
year | Year in the date to be calculated. |
clock_t clock | ( | ) |
Clock program.
Copies the values of num bytes from the location pointed to by source directly to the memory block pointed to by destination.
Return difference between two times.
Calculates the difference in seconds between beginning and end.
end | Higher bound of the time interval whose length is calculated. |
beginning | Lower bound of the time interval whose length is calculated. If this describes a time point later than end, the result is negative. |
Convert time_t to tm as UTC time.
Uses the value pointed by timer to fill a tm structure with the values that represent the corresponding time, expressed as a UTC time (i.e., the time at the GMT timezone).
timer | Pointer to an object of type time_t that contains a time value. |
Convert tm structure to time_t.
Returns the value of type time_t that represents the local time described by the tm structure pointed by timeptr (which may be modified).
timeptr | Pointer to a tm structure that contains a calendar time broken down into its components (see struct tm). |
Get current time.
Get the current calendar time as a value of type time_t.
timer | Pointer to an object of type time_t, where the time value is stored. |
tm converted_time |
Internal variable used during time conversions.