Packet Sniffer SDK DLL Edition

HNAdapter :: Properties :: AdpSetUseHighPrecisionTime

 Previous Next

Sets flag status of using High Precision Time.

Syntax:

BOOL __stdcall AdpSetUseHighPrecisionTime(HANDLE hAdp, BOOL bUseHighPrecision);

Parameters:

hAdp

[in] HNAdapter object handle.

bUseHighPrecision

[in] The new value of the status flag of the High Precision Time using.

Return values:

If the function succeeds the return value will be the bUseHighPrecision parameter value.

Description:

Use UseHighPrecisionTime property to set flag status of using High Precision Time mode for captured packet timestamping.

If this flag is set to TRUE, then in Windows NT based systems (NT/2k/XP/2k3/Vista) for obtaining a packet capture timestamp the kernel function KeQueryPerformanceCounter is used. Measurement units are hundreds of nanoseconds.

Use AdpSetUseHighPrecisionTime before the opening of the network adapter. This flag status also affects on the AdpGetOpenTime function execution: its return value also will be got with help of the KeQueryPerformanceCounter function.

See also:HNAdapter, AdpGetUseHighPrecisionTime, AdpGetOpenTime, PktGetTimeStamp