renamed Mutex to Lock
[physics.git] / src / ticks.cpp
index 3766c2a..54699b1 100644 (file)
 /// ***** Public Methods *****
 
 // returns the current microseconds from unix time
-long int tickCountMicro()
+MICRO tickCountMicro()
 {
-  struct timeval tv;
+  timeval tv;
   gettimeofday(&tv, 0);
 
   return (long int)tv.tv_sec * 1000000 + tv.tv_usec;
 }
 
 // returns the current milliseconds from unix time
-long int tickCountMilli()
+MICRO tickCountMilli()
 {
   return tickCountMicro() / 1000;
 }
 
 // returns the current seconds from unix time
-long int tickCountSec()
+MICRO tickCountSec()
 {
   return tickCountMicro() / 1000000;
 }