git.fiddlerwoaroof.com
Browse code

removes hello.c

Greg Wiley authored on 28/03/2017 18:59:10
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,33 +0,0 @@
1
-#include <stdio.h>
2
-#include <sys/time.h>
3
-#include "config.h"
4
-
5
-#ifdef HAVE_SYS_TIME_H
6
-    #include <sys/time.h>
7
-#else
8
-    #include <time.h>
9
-#endif
10
-
11
-double get_sec_since_epoch()
12
-{
13
-    double sec;
14
-
15
-    #ifdef HAVE_GETTIMEOFDAY
16
-        struct timeval tv;
17
-
18
-        gettimeofday(&tv, NULL);
19
-        sec = tv.tv_sec;
20
-        sec += tv.tv_usec / 1000000.0;
21
-    #else
22
-        sec = time(NULL);
23
-    #endif
24
-
25
-    return sec;
26
-}
27
-
28
-int main(int argc, char* argv[])
29
-{
30
-    printf("%f\n", get_sec_since_epoch());
31
-
32
-    return 0;
33
-}