X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2Fticks.cpp;h=5bcefd62598173b2cf9c480baea8016357298031;hp=3766c2a85a5c665712bbdb7a0aadccb4e8bf1096;hb=8baa4b2f0b559c9c48fba41b8dc4a4d5f92f728b;hpb=ce53f20f9a78b01966c91838ee3b80b4c674bc35 diff --git a/src/ticks.cpp b/src/ticks.cpp index 3766c2a..5bcefd6 100644 --- a/src/ticks.cpp +++ b/src/ticks.cpp @@ -24,7 +24,7 @@ /// ***** Public Methods ***** // returns the current microseconds from unix time -long int tickCountMicro() +MICRO tickCountMicro() { struct timeval tv; gettimeofday(&tv, 0); @@ -33,13 +33,13 @@ long int tickCountMicro() } // 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; }