Changeset 433 for pjproject/trunk/pjlib/src/pjlib-test/timestamp.c
- Timestamp:
- May 10, 2006 7:24:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/timestamp.c
r387 r433 189 189 190 190 /* Loop.. */ 191 for (i=0; i<1000000; ++i) 192 ; 191 for (i=0; i<1000000; ++i) { 192 /* Try to do something so that smart compilers wont 193 * remove this silly loop. 194 */ 195 null_func(); 196 } 197 198 sleep(0); 193 199 194 200 /* Mark end time. */ … … 199 205 PJ_LOG(3,(THIS_FILE, "....elapsed: %u usec", (unsigned)elapsed)); 200 206 201 /* See if elapsed time is reasonable. */ 202 if (elapsed < 1 || elapsed > 100000) { 207 /* See if elapsed time is "reasonable". 208 * This should be good even on 50Mhz embedded powerpc. 209 */ 210 if (elapsed < 1 || elapsed > 1000000) { 203 211 PJ_LOG(3,(THIS_FILE, "....error: elapsed time outside window (%u, " 204 212 "t1.u32.hi=%u, t1.u32.lo=%u, "
Note: See TracChangeset
for help on using the changeset viewer.