Skip to content

Commit

Permalink
used for the robot logger
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Oct 31, 2013
1 parent 343393a commit 771a9ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions simpleapi/timing.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "timing.h"


double ClockGetTime(){
struct timeval tv; // see gettimeofday(2)
gettimeofday(&tv, NULL);
double t = (double) tv.tv_sec + (double) tv.tv_usec/1000000.0;
return(t);
}

0 comments on commit 771a9ea

Please sign in to comment.