summaryrefslogtreecommitdiffstats
path: root/osdep/timer-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/timer-linux.c')
-rw-r--r--osdep/timer-linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/osdep/timer-linux.c b/osdep/timer-linux.c
index 579c284019..cab110927a 100644
--- a/osdep/timer-linux.c
+++ b/osdep/timer-linux.c
@@ -34,7 +34,7 @@ unsigned int GetTimer(void){
// float s;
gettimeofday(&tv,NULL);
// s=tv.tv_usec;s*=0.000001;s+=tv.tv_sec;
- return (tv.tv_sec*1000000+tv.tv_usec);
+ return tv.tv_sec * 1000000 + tv.tv_usec;
}
// Returns current time in milliseconds
@@ -43,7 +43,7 @@ unsigned int GetTimerMS(void){
// float s;
gettimeofday(&tv,NULL);
// s=tv.tv_usec;s*=0.000001;s+=tv.tv_sec;
- return (tv.tv_sec*1000+tv.tv_usec/1000);
+ return tv.tv_sec * 1000 + tv.tv_usec / 1000;
}
static unsigned int RelativeTime=0;