aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/rtspin.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/bin/rtspin.c b/bin/rtspin.c
index 2de60f5..ae76941 100644
--- a/bin/rtspin.c
+++ b/bin/rtspin.c
@@ -11,22 +11,6 @@
11#include "common.h" 11#include "common.h"
12 12
13 13
14static double cputime()
15{
16 struct timespec ts;
17 int err;
18 err = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts);
19 if (err != 0)
20 perror("clock_gettime");
21 return (ts.tv_sec + 1E-9 * ts.tv_nsec);
22}
23
24static double wctime()
25{
26 struct timeval tv;
27 gettimeofday(&tv, NULL);
28 return (tv.tv_sec + 1E-6 * tv.tv_usec);
29}
30 14
31static void usage(char *error) { 15static void usage(char *error) {
32 fprintf(stderr, "Error: %s\n", error); 16 fprintf(stderr, "Error: %s\n", error);