To find the time difference in executing a part of program is done by using functions from (time.h)
The calender time has a time structure:
This structure contains different type of time data types.
Details of the structure is
struct tm{
int tm_sec; /// time in seconds
int tm_min; /// time in minute
it has got mainly two type of time
1). Calander Time
2) System Clock time : It is represented by clock_t() and Clock().
The calender time has a time structure:
This structure contains different type of time data types.
Details of the structure is
struct tm{
int tm_sec; /// time in seconds
int tm_min; /// time in minute
int tm_hour; /// time in hour
int tm_mday; // month day (1-31)
int tm_mon; ///month (1-12)
int tm_wday; /// days of week;
int tm_yday; ///days of year(0-365)
int tm_year; ///year
int tm_isdst; ///Daylight Saving Time enabled (> 0), disabled (= 0), or unknown (< 0)
}
No comments:
Post a Comment