diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2003-05-14 01:51:52 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2003-05-14 01:51:52 +0000 |
commit | d88a05ddb8d71f2768288f1d97a7c63d32e3ce34 (patch) | |
tree | e08d996938d493c1b621bdae85b0d9d22f5485e2 /sysutils/clockspeed | |
parent | 56799712cd6c71c78b83c034555cd342b7aa3215 (diff) | |
download | ports-d88a05ddb8d71f2768288f1d97a7c63d32e3ce34.tar.gz ports-d88a05ddb8d71f2768288f1d97a7c63d32e3ce34.zip |
Notes
Diffstat (limited to 'sysutils/clockspeed')
-rw-r--r-- | sysutils/clockspeed/files/patch-timing.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysutils/clockspeed/files/patch-timing.h b/sysutils/clockspeed/files/patch-timing.h index dea14a779970..b5808799e33a 100644 --- a/sysutils/clockspeed/files/patch-timing.h +++ b/sysutils/clockspeed/files/patch-timing.h @@ -17,7 +17,7 @@ +typedef struct { struct timespec t; } timing; +#define timing_now(x) ((void) clock_gettime(CLOCK_REALTIME, &((x)->t))) +/* in seconds */ -+#define timing_diff(x,y) (((x)->t.tv_sec - (double) (y)->t.tv_sec) + (4294967296.0*((x)->t.tv_nsec - (double) (y)->t.tv_nsec)))/1e9) ++#define timing_diff(x,y) (((x)->t.tv_sec - (double) (y)->t.tv_sec) + (4294967296.0*((x)->t.tv_nsec - (double) (y)->t.tv_nsec))/1e9) + +#else |