View | Details | Raw Unified
Collapse All | Expand All

(-) examples/grab_partial_image.c.orig (-1 / +4 lines)
 Lines 216-222    Link Here 
    /*---------------------------------------------------------------------
    /*---------------------------------------------------------------------
     *  output elapsed time
     *  output elapsed time
     *---------------------------------------------------------------------*/
     *---------------------------------------------------------------------*/
    elapsed_time = (float)(times(&tms_buf) - start_time) / CLK_TCK;
    #ifndef CLOCKS_PER_SEC
    # define CLOCKS_PER_SEC CLK_TCK
    #endif
    elapsed_time = (float)(times(&tms_buf) - start_time) / CLOCKS_PER_SEC;
    printf( "got frame %d. elapsed time: %g sec ==> %g frames/second\n",
    printf( "got frame %d. elapsed time: %g sec ==> %g frames/second\n",
            i, elapsed_time, (float)i / elapsed_time);
            i, elapsed_time, (float)i / elapsed_time);
  }
  }