Timing functions (report and diagnostics) declarations and definitions/macros.
More...
#include <signal.h>
#include <time.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
#include <sys/times.h>
Go to the source code of this file.
Timing functions (report and diagnostics) declarations and definitions/macros.
Definition in file mytime.h.
#define diffcpuclock |
( |
|
timestop, |
|
|
|
timestart |
|
) |
| ((timestop>timestart) ? (SFTYPE)(timestop-timestart)/(SFTYPE)(CLOCKS_PER_SEC) : (SFTYPE)(timestop-(timestart-TOTALTICKS))/(SFTYPE)(CLOCKS_PER_SEC) ) |
#define diffmicrotime |
( |
|
timestop, |
|
|
|
timestart |
|
) |
| ((SFTYPE)(timestop.tv_sec-timestart.tv_sec)+(SFTYPE)(timestop.tv_usec-timestart.tv_usec)*1E-6) |
#define diffmyustimes |
( |
|
timestop, |
|
|
|
timestart |
|
) |
| ((SFTYPE)(timestop-timestart)/1000000.0) |
#define GETTIMEOFDAYPROBLEM 0 |
#define GETTIMEZONETYPE static struct timezone |
#define microtime |
( |
|
time | ) |
gettimeofday(time,&tz) |
#define SEC2HOUR (2.77777777777777E-4) |
#define TOTALTICKS (4294967296) |
void mycpuclock |
( |
clock_t * |
time | ) |
|
void myustimes |
( |
clock_t * |
time | ) |
|