summaryrefslogtreecommitdiff
path: root/pjlib/include
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2011-03-16 09:22:24 +0000
committerLiong Sauw Ming <ming@teluu.com>2011-03-16 09:22:24 +0000
commit623fdccd9c92fc2a00516e5cd6ed2d5edc2272a1 (patch)
treebf30cf0db67ac5c9aa3f431efdaa7d1938656a31 /pjlib/include
parent2a9988f3e4c9b8d40ffebaa4427908de29324711 (diff)
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
Diffstat (limited to 'pjlib/include')
-rw-r--r--pjlib/include/pj/os.h9
1 files changed, 9 insertions, 0 deletions
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
@@ -1169,6 +1169,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.
*