Changeset 2336 for pjproject/trunk/pjlib/src/pjlib-test/timestamp.c
- Timestamp:
- Oct 1, 2008 9:02:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/timestamp.c
r2039 r2336 52 52 pj_timestamp freq, t1, t2; 53 53 pj_time_val tv1, tv2, tvtmp; 54 pj_ uint32_t msec, tics;54 pj_int64_t msec, tics; 55 55 pj_int64_t diff; 56 56 … … 66 66 pj_get_timestamp(&t1); 67 67 68 /* Sleep for 5seconds */68 /* Sleep for 10 seconds */ 69 69 pj_thread_sleep(10000); 70 70 … … 81 81 82 82 /* Check that the frequency match the elapsed time */ 83 tics = (unsigned)(t2.u64 - t1.u64);83 tics = t2.u64 - t1.u64; 84 84 diff = tics - (msec * freq.u64 / 1000); 85 85 if (diff < 0)
Note: See TracChangeset
for help on using the changeset viewer.