aboutsummaryrefslogtreecommitdiff
path: root/sysutils/clockspeed
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-05-14 01:51:52 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-05-14 01:51:52 +0000
commitd88a05ddb8d71f2768288f1d97a7c63d32e3ce34 (patch)
treee08d996938d493c1b621bdae85b0d9d22f5485e2 /sysutils/clockspeed
parent56799712cd6c71c78b83c034555cd342b7aa3215 (diff)
downloadports-d88a05ddb8d71f2768288f1d97a7c63d32e3ce34.tar.gz
ports-d88a05ddb8d71f2768288f1d97a7c63d32e3ce34.zip
Notes
Diffstat (limited to 'sysutils/clockspeed')
-rw-r--r--sysutils/clockspeed/files/patch-timing.h2
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