Cleaning, improve comments
[apps/agl-service-can-low-level.git] / src / timer.cpp
index b0ccb62..01fd763 100644 (file)
 
 #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