get current time

Hey,

I’m writing a keyboard filter driver for NT, and I need to get in some
point the current time of each keystroke. how do i get the current time
(in user mode)? i found something that can do that, but its resolution is
seconds, and i need something stronger like miliseconds or something like
that…
if anyone knows and can help me, i’d appreaciate it very much,

thanks in advance,
Oren.

What’s wrong with GetLocalTime() ?

If higher resolution is needed, then you’ll need to use
QueryPerformanceCounter etc.

Regards,

Paul Bunn, UltraBac.Com, 425-644-6000
Microsoft MVP - WindowsNT
http://www.ultrabac.com

-----Original Message-----
From: Greenshtain Oren [mailto:xxxxx@techst02.technion.ac.il]
Sent: Monday, March 13, 2000 10:23 AM
To: NT Developers Interest List
Subject: [ntdev] get current time

Hey,

I’m writing a keyboard filter driver for NT, and I need to get in some
point the current time of each keystroke. how do i get the current time
(in user mode)? i found something that can do that, but its resolution is
seconds, and i need something stronger like miliseconds or something like
that…
if anyone knows and can help me, i’d appreaciate it very much,