Ignore:
Timestamp:
Nov 21, 2005 4:59:47 PM (18 years ago)
Author:
bennylp
Message:

Added rdtsc option for win32 timestamp and added pj_elapsed_msec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/os.h

    r66 r70  
    923923 
    924924/** 
     925 * Calculate the elapsed time as 32-bit miliseconds. 
     926 * This function calculates the elapsed time using highest precision 
     927 * calculation that is available for current platform, considering 
     928 * whether floating point or 64-bit precision arithmetic is available.  
     929 * For maximum portability, application should prefer to use this function 
     930 * rather than calculating the elapsed time by itself. 
     931 * 
     932 * @param start     The starting timestamp. 
     933 * @param stop      The end timestamp. 
     934 * 
     935 * @return          Elapsed time in milisecond. 
     936 * 
     937 * @see pj_elapsed_time(), pj_elapsed_cycle(), pj_elapsed_nanosec() 
     938 */ 
     939PJ_DECL(pj_uint32_t) pj_elapsed_msec( const pj_timestamp *start, 
     940                                      const pj_timestamp *stop ); 
     941 
     942/** 
    925943 * Calculate the elapsed time in 32-bit microseconds. 
    926944 * This function calculates the elapsed time using highest precision 
Note: See TracChangeset for help on using the changeset viewer.