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 f32f92f392..972049ac5f 100644
--- a/osdep/timer-linux.c
+++ b/osdep/timer-linux.c
@@ -32,14 +32,14 @@ int usec_sleep(int usec_delay)
unsigned int GetTimer(void){
struct timeval tv;
gettimeofday(&tv,NULL);
- return (tv.tv_sec*1000000+tv.tv_usec);
+ return tv.tv_sec * 1000000 + tv.tv_usec;
}
// Returns current time in milliseconds
unsigned int GetTimerMS(void){
struct timeval tv;
gettimeofday(&tv,NULL);
- return (tv.tv_sec*1000+tv.tv_usec/1000);
+ return tv.tv_sec * 1000 + tv.tv_usec / 1000;
}
// Initialize timer, must be called at least once at start