Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Packet Ping timing precision

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
In Delphi is there any functions (or has anyone got suggested suggested code)that will time a packet of data to be sent from a client to a server and back again. Currently I am using the date/time functions to calculate the timings but these are not precise enough. I need nano or micro second precision.
 
GetTickCount will give you millisecond accuracy, but I'm not sure there's anything that will give you nanosecond accuracy. GetThreadTimes and GetProcessTimes (WinAPI) will time processes and threads with nanosecond precision but I don't think you can use it to watch just a function call, for example.

Good luck!

TealWren
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top