From 6e41d06bbfa897f6287ea14ee473683aa3576f5a Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Fri, 3 Nov 2017 09:56:49 +0100 Subject: Corrections in fn_time --- include/grgsm/misc_utils/fn_time.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/grgsm/misc_utils/fn_time.h b/include/grgsm/misc_utils/fn_time.h index 560ee4a..b26c21b 100644 --- a/include/grgsm/misc_utils/fn_time.h +++ b/include/grgsm/misc_utils/fn_time.h @@ -1,6 +1,7 @@ /* -*- c++ -*- */ /* @file * @author Piotr Krysik + * @author Vadim Yanitskiy * @section LICENSE * * Gr-gsm is free software; you can redistribute it and/or modify @@ -24,8 +25,9 @@ #ifndef INCLUDED_GRGSM_FN_TIME_H #define INCLUDED_GRGSM_FN_TIME_H +#include #include -#include +#include namespace gr { namespace gsm { @@ -41,10 +43,12 @@ namespace gr { * frame numbers * @return difference between fn_ref and fn */ - time_spec_t fn_time_delta2(uint32_t fn_ref, time_spec_t time_ref, uint32_t fn_x, - time_spec_t time_hint, uint32_t ts_num, uint32_t ts_ref); + typedef std::pair time_format; + + GRGSM_API time_format fn_time_delta_cpp(uint32_t fn_ref, time_format time_ref, uint32_t fn_x, + time_format time_hint, uint32_t ts_num, uint32_t ts_ref); - } // namespace grgsm + } // namespace gsm } // namespace gr #endif /* INCLUDED_GRGSM_FN_TIME_H */ -- cgit v1.2.3