Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Code Block
FUNCTION xpfGetQueryPerformanceCounter : INTEGER;  
(* wrapper for Widows function: 
   	BOOL WINAPI QueryPerformanceCounter(
    									_Out_ LARGE_INTEGER *lpPerformanceCount
                                        );
*)


FUNCTION xpfGetQueryPerformanceFrequency : INTEGER;  
(* wrapper for Widows function: 
	BOOL WINAPI QueryPerformanceFrequency(
                                          _Out_ LARGE_INTEGER *lpFrequency
                                         );
*)

See Windows documentation for description


FUNCTION xpxGetQueryPerformanceUsed (startTime        : INTEGER;
                                     endTime          : INTEGER;
                                     VAR hours        : INTEGER;
                                     VAR minutes      : INTEGER;
                                     VAR seconds      : INTEGER;
                                     VAR milliseconds : INTEGER;
                                     VAR microseconds : INTEGER)
                                     rstat            : INTEGER;

This functions calculate the time difference between to time stamps returned by the xpfGetQueryPerformanceCounter function.