diff options
Diffstat (limited to 'csrc/smith.c')
-rw-r--r-- | csrc/smith.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/csrc/smith.c b/csrc/smith.c index 4ff5553..369bdd0 100644 --- a/csrc/smith.c +++ b/csrc/smith.c @@ -7,9 +7,21 @@ /*********************************/ #include "smith.h" +#include <sys/time.h> char * mr_smith() { return ("---SMITH_V0.0.0---"); } + +long +c_get_timestamp() +{ + struct timeval tv; + long ct; + + gettimeofday(&tv, NULL); + ct = ((tv.tv_sec * 1000) + (tv.tv_usec / 1000)); + return (ct); +} |