Get time in kernel driver

Hi.
How can get current time in a driver? Or something like GetTickCount. I need this to calculate the time elapsed between two events.


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

you may use KeQuerySystemTime()

Muath Ali

Commvault Systems - Canada

-----Original Message-----
From: Ratmil Torres [mailto:xxxxx@seg.inf.cu]
Sent: October 25, 2001 12:48 PM
To: File Systems Developers
Subject: [ntfsd] Get time in kernel driver

Hi.
How can get current time in a driver? Or something like GetTickCount. I need
this to calculate the time elapsed between two events.

You are currently subscribed to ntfsd as: xxxxx@commvault.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

KeQuerySystemTime. There is also a KeQueryTickCount function. Please
check the DDK docs for details.

Ravi.
-----Original Message-----
From: Ratmil Torres [mailto:xxxxx@seg.inf.cu]
Sent: Thursday, October 25, 2001 9:48 AM
To: File Systems Developers
Subject: [ntfsd] Get time in kernel driver

Hi.
How can get current time in a driver? Or something like GetTickCount. I
need this to calculate the time elapsed between two events.

You are currently subscribed to ntfsd as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

KeQueryPerformanceCounter is a better choice for profiling. This is
more accurate and more precise than KeQuerySystemTime or
KeQueryTickCount.

-----Original Message-----
From: Ravi Gollapudi [mailto:xxxxx@microsoft.com]
Sent: Thursday, October 25, 2001 5:17 PM
To: File Systems Developers
Subject: [ntfsd] RE: Get time in kernel driver

KeQuerySystemTime. There is also a KeQueryTickCount function. Please
check the DDK docs for details.

Ravi.
-----Original Message-----
From: Ratmil Torres [mailto:xxxxx@seg.inf.cu]
Sent: Thursday, October 25, 2001 9:48 AM
To: File Systems Developers
Subject: [ntfsd] Get time in kernel driver

Hi.
How can get current time in a driver? Or something like
GetTickCount. I
need this to calculate the time elapsed between two events.

You are currently subscribed to ntfsd as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@nsisoftware.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hello Ratmil,

Thursday, October 25, 2001, 8:48:24 PM, you wrote:

RT> Hi.
RT> How can get current time in a driver? Or something like GetTickCount. I need this to calculate the time elapsed between two events.

RT> —
RT> You are currently subscribed to ntfsd as: xxxxx@infpres.com
RT> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You can use one of these functions:

VOID KeQuerySystemTime(PLARGE_INTEGER CurrentTime);
VOID KeQueryTickCount(PLARGE_INTEGER TickCount);
ULONGLONG KeQueryInterruptTime(VOID);


Best regards,
Konstantin Manurin (aka NizeG) xxxxx@infpres.com
xxxxx@beep.ru
xxxxx@yandex.ru
xxxxx@mail.ru


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com