4 /* this file is specific to a UNIX system */
6 /// ***** Public Methods *****
8 // returns the current microseconds from unix time
9 long int tickCountMicro()
14 return (long int)tv.tv_sec * 1000000 + tv.tv_usec;
17 // returns the current milliseconds from unix time
18 long int tickCountMilli()
20 return tickCountMicro() / 1000;
23 // returns the current seconds from unix time
24 long int tickCountSec()
26 return tickCountMicro() / 1000000;
29 // return after num milliseconds
33 int numMicro = num * 1000;
35 start = tickCountMicro();
36 while(tickCountMicro() - start < numMicro);