X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/frsh-include.git/blobdiff_plain/b06ccfcf9a800a5ea2c2975aafa8af0e32d6e5c7..d6ccdcca3ca032b65ce0eb294f0c9657a7446725:/frsh_debug.h diff --git a/frsh_debug.h b/frsh_debug.h index ac2ea22..e57b6b6 100644 --- a/frsh_debug.h +++ b/frsh_debug.h @@ -110,7 +110,7 @@ static inline long int FRSH_GET_TIMESTAMP_MSECS() long int result = -1; PRW( fosa_clock_get_time(FOSA_CLOCK_REALTIME, ¤t_time) ); - timespec2msec(¤t_time, ¤t_time_msec); + current_time_msec = timespec2msec(¤t_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; }