Ignore:
Timestamp:
May 10, 2006 7:24:40 PM (18 years ago)
Author:
bennylp
Message:

Merge-in RTEMS port patch by Phil Torre <ptorre@…>, alpha release.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/timestamp.c

    r387 r433  
    189189 
    190190    /* 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); 
    193199 
    194200    /* Mark end time. */ 
     
    199205    PJ_LOG(3,(THIS_FILE, "....elapsed: %u usec", (unsigned)elapsed)); 
    200206 
    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) { 
    203211        PJ_LOG(3,(THIS_FILE, "....error: elapsed time outside window (%u, " 
    204212                             "t1.u32.hi=%u, t1.u32.lo=%u, " 
Note: See TracChangeset for help on using the changeset viewer.