projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update thread setup with a good cap
[physics.git]
/
src
/
ticks.cpp
diff --git
a/src/ticks.cpp
b/src/ticks.cpp
index
3766c2a
..
5bcefd6
100644
(file)
--- a/
src/ticks.cpp
+++ b/
src/ticks.cpp
@@
-24,7
+24,7
@@
/// ***** Public Methods *****
// returns the current microseconds from unix time
/// ***** Public Methods *****
// returns the current microseconds from unix time
-
long int
tickCountMicro()
+
MICRO
tickCountMicro()
{
struct timeval tv;
gettimeofday(&tv, 0);
{
struct timeval tv;
gettimeofday(&tv, 0);
@@
-33,13
+33,13
@@
long int tickCountMicro()
}
// returns the current milliseconds from unix time
}
// returns the current milliseconds from unix time
-
long int
tickCountMilli()
+
MICRO
tickCountMilli()
{
return tickCountMicro() / 1000;
}
// returns the current seconds from unix time
{
return tickCountMicro() / 1000;
}
// returns the current seconds from unix time
-
long int
tickCountSec()
+
MICRO
tickCountSec()
{
return tickCountMicro() / 1000000;
}
{
return tickCountMicro() / 1000000;
}