asctime
Syntax:
#include <time.h> char *asctime( const struct tm *ptr ); The function asctime() converts the time in the struct 'ptr' to a character string of the following format: day month date hours:minutes:seconds year An example: Mon Jun 26 12:03:53 2000 |
#include <time.h> clock_t clock( void );
The clock() function returns the processor time since the program started, or -1 if that information is unavailable. To convert the return value to seconds, divide it by CLOCKS_PER_SEC. (Note: if your compiler is POSIX compliant, then CLOCKS_PER_SEC is always defined as 1000000.)