Changeset 3456 for pjproject/trunk/pjlib/src/pj/os_timestamp_common.c
- Timestamp:
- Mar 16, 2011 9:22:24 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/os_timestamp_common.c
r2560 r3456 189 189 } 190 190 191 PJ_DEF(pj_status_t) pj_gettickcount(pj_time_val *tv) 192 { 193 pj_timestamp ts, start; 194 pj_status_t status; 195 196 if ((status = pj_get_timestamp(&ts)) != PJ_SUCCESS) 197 return status; 198 199 pj_set_timestamp32(&start, 0, 0); 200 *tv = pj_elapsed_time(&start, &ts); 201 202 return PJ_SUCCESS; 203 } 204 191 205 #endif /* PJ_HAS_HIGH_RES_TIMER */ 192 206
Note: See TracChangeset
for help on using the changeset viewer.