From 623fdccd9c92fc2a00516e5cd6ed2d5edc2272a1 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Wed, 16 Mar 2011 09:22:24 +0000 Subject: Fixed #1211: Add pjlib API pj_gettickcount() that returns a monotonically increasing timestamp * Changed the timer_heap to use pj_gettickcount(). * Changed ioqueue to use pj_gettickcount(). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3456 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/os.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pjlib/include') diff --git a/pjlib/include/pj/os.h b/pjlib/include/pj/os.h index 8d50476a..1cdbc476 100644 --- a/pjlib/include/pj/os.h +++ b/pjlib/include/pj/os.h @@ -1168,6 +1168,15 @@ PJ_DECL(pj_color_t) pj_term_get_color(void); */ #if defined(PJ_HAS_HIGH_RES_TIMER) && PJ_HAS_HIGH_RES_TIMER != 0 +/** + * Get monotonic time since some unspecified starting point. + * + * @param tv Variable to store the result. + * + * @return PJ_SUCCESS if successful. + */ +PJ_DECL(pj_status_t) pj_gettickcount(pj_time_val *tv); + /** * Acquire high resolution timer value. The time value are stored * in cycles. -- cgit v1.2.3