projects
/
physics.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a24bcee
)
refactoed ticks
author
Patrik Gornicz
<Gornicz.P@gmail.com>
Thu, 22 Jan 2009 01:33:25 +0000
(20:33 -0500)
committer
Patrik Gornicz
<Gornicz.P@gmail.com>
Thu, 22 Jan 2009 01:33:25 +0000
(20:33 -0500)
src/ticks.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/ticks.cpp
b/src/ticks.cpp
index
5bcefd6
..
54699b1
100644
(file)
--- a/
src/ticks.cpp
+++ b/
src/ticks.cpp
@@
-26,7
+26,7
@@
// returns the current microseconds from unix time
MICRO tickCountMicro()
{
-
struct
timeval tv;
+ timeval tv;
gettimeofday(&tv, 0);
return (long int)tv.tv_sec * 1000000 + tv.tv_usec;