Packet Sniffer SDK DLL Edition

HNLBAdapter :: Properties :: LbAdpSetUseHighPrecisionTime

 Previous Next

Sets flag status of using High Precision Time.

Syntax:

BOOL __stdcall LbAdpSetUseHighPrecisionTime(HANDLE hLbAdp, BOOL bUseHighPrecision);

Parameters:

hLbAdp

[in] HNLBAdapter 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 LbAdpSetUseHighPrecisionTime before the opening of the loopback adapter. This flag status also affects on the LbAdpGetOpenTime function execution: its return value also will be got with help of the KeQueryPerformanceCounter function.

See also:HNLBAdapter, LbAdpGetUseHighPrecisionTime, LbAdpGetOpenTime, PktGetTimeStamp