]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_debug.h
Changing msec2timespec() and timespec2msec() functions to give their results
[frescor/frsh-include.git] / frsh_debug.h
index ac2ea22fcd837744b8429640654388c471e076eb..e57b6b6f056aa11d4dc088866a4d11dec6346ac6 100644 (file)
@@ -110,7 +110,7 @@ static inline long int FRSH_GET_TIMESTAMP_MSECS()
     long int result = -1;
 
     PRW(  fosa_clock_get_time(FOSA_CLOCK_REALTIME, &current_time)  );
-    timespec2msec(&current_time, &current_time_msec);
+    current_time_msec = timespec2msec(&current_time);
 
     result = current_time_msec - frsh_trace_init_timemsec;
 
@@ -121,7 +121,7 @@ static inline long int FRSH_TIMESPEC_TO_RELATIVE_MSECS(const struct timespec *ts
 {
     long int time_msecs = -1;
 
-    timespec2msec(tspec, &time_msecs);
+    time_msecs = timespec2msec(tspec);
 
     return time_msecs - frsh_trace_init_timemsec;
 }