Types
+ clock_t
Definition
typedef long clock_t;
Description
This type is used in clock() function to hold the number of ticks since the program started. The number of ticks is a unit of measure, where the constant "CLOCKS_PER_SEC" defines the ticks per second. This means that the number of seconds passed since the program began is equla to CLOCKS_PER_SEC timers value of clock_t returned from the function clock().
+ time_t
Definition
typedef long time_t;
Description
This type is typically used to hold the number of seconds since midnight January 1, 1970, when the time() function is called. The type is often defined as a long, but may defined as a 64-bit int on newer systems.
+ tm
Definition
struct tm
{
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
};
Description
This struct is used to hold a complete time description, which is usually localized. This variable type is generally assigned via a conversion from a time_t data type variable.