X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Ftimer.cpp;h=01fd7636db95bbe2089b12c49cb6df7bc678166a;hb=b0975e4bfa534153657a7ee8acaee0f950056e97;hp=b0ccb62825407d1a2f458e7cce113ed86f81b839;hpb=c535c3bb2d73327772c1bb72c9fcca3f8a7f8204;p=apps%2Fagl-service-can-low-level.git 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