INTRODUZIONE ALLA PROGRAMMAZIONE IN C



Time



#include <time.h> char *asctime (struct tm *time) - Converte time da "struct tm" a stringa. clock_t clock(void) - Ottiene l'elapsed processor time in clock ticks. char *ctime(time_t *time) - Converte il binary time in una stringa. double difftime(time_t time2, time_t time1) - Calcola la differenza in secondi tra due orari. struct_tm *gmtime (time_t *time) - Ottiene il Greenwich Mean Time (GMT) in una "tm structure". struct tm *localtime(time_t *time) - Ottiene l'orario locale in una "tm structure". time_t time(time_t *timeptr) - Ottiene l'orario corrente come secondi trascorsi dall'ora 0 GMT 1/1/70.