Cleaning, improve comments
[apps/agl-service-can-low-level.git] / src / timer.cpp
index 70ce2b8..01fd763 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-inline unsigned long systemTimeMs()
+
+#include "timer.hpp"
+
+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