From 747d58ad84d230f6cf11ac818bab65019df83611 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 22 Feb 2017 11:44:27 +0100 Subject: No more warning about not defined functions because of wrong header files inclusion. Some variables are now accessible using functions rather than using global variables that can not be accessed through separated files. Also fix timer returning function type. Change-Id: I36138ff671c2537f595235273abaa34783be18e1 Signed-off-by: Romain Forlot --- src/timer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/timer.cpp') diff --git a/src/timer.cpp b/src/timer.cpp index b0ccb628..01fd7636 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -17,15 +17,15 @@ #include "timer.hpp" -inline unsigned long systemTimeMs() +long long int systemTimeMs() { struct timeb t_msec; - unsigned long int timestamp_msec; + long long int timestamp_msec; if(!::ftime(&t_msec)) { - timestamp_msec = ((unsigned long int) t_msec.time) * 1000ll + - (unsigned long int) t_msec.millitm; + timestamp_msec = (t_msec.time) * 1000ll + + t_msec.millitm; } return timestamp_msec; } \ No newline at end of file -- cgit 1.2.3-korg