共用方式為


NdisGetCurrentSystemTime (Compact 2013)

3/26/2014

This function returns the current system time, suitable for setting timestamps.

Syntax

VOID NdisGetCurrentSystemTime(
  PLARGE_INTEGER pSystemTime
);

Parameters

  • pSystemTime
    [in] Points to a caller-supplied variable in which this function returns a count of 100-nanosecond intervals since January 1, 1601.

Return Value

None.

Remarks

An NDIS driver might also call NdisGetCurrentSystemTime if it maintains a count of how many packets it receives within any particular interval to tune its performance dynamically. For example, a miniport driver could call NdisGetCurrentSystemTime for each receive interrupt to determine periods of high network traffic, when the driver might disable one or more types of interrupts on the network adapter and enable a polling NetTimerCallback function to process receive indications or send requests.

Requirements

Header

ndis.h

Library

ndis.lib

See Also

Reference

NDIS Current Information Functions
MiniportHandleInterrupt
MiniportTimer
NdisMSetPeriodicTimer
NDIS_PACKET_OOB_DATA
NDIS_SET_PACKET_TIME_RECEIVED
NDIS_SET_PACKET_TIME_SENT
NDIS_SET_PACKET_TIME_TO_SEND
NetTimerCallback