Hi,

I am seeking for a driver with a
high resolution timestamp (nanosecond).
Who can tell me an example or links?

Thanks michael

Re: driver with timestamp (nanoseconds) by Maxim

Maxim
Tue Oct 12 05:25:05 CDT 2004

Try RDTSC, and let's hope that it will not lie due to CPU power management
schemes. At least the APIC timer lies grossly due to this.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"Michael Andreas" <dachrinne@t-online.de> wrote in message
news:ckfvs4$2sj$01$1@news.t-online.com...
> Hi,
>
> I am seeking for a driver with a
> high resolution timestamp (nanosecond).
> Who can tell me an example or links?
>
> Thanks michael
>
>



Re: driver with timestamp (nanoseconds) by Don

Don
Tue Oct 12 07:46:06 CDT 2004

NO, NO, NO, NOOOOOOOOOOO!!!!

Don't use assembler in the kernel, it won't work with 64-bit and in general
is a VERY STUPID THING TO DO!. Use KeQueryPerformanceCounter, this will use
the RDTSC if available and it is portable.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply


"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:u2nXUVEsEHA.2732@TK2MSFTNGP09.phx.gbl...
> Try RDTSC, and let's hope that it will not lie due to CPU power
management
> schemes. At least the APIC timer lies grossly due to this.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
> "Michael Andreas" <dachrinne@t-online.de> wrote in message
> news:ckfvs4$2sj$01$1@news.t-online.com...
> > Hi,
> >
> > I am seeking for a driver with a
> > high resolution timestamp (nanosecond).
> > Who can tell me an example or links?
> >
> > Thanks michael
> >
> >
>
>



Re: driver with timestamp (nanoseconds) by pavel_a

pavel_a
Tue Oct 12 14:23:08 CDT 2004

Maxim noted an interesting detail...
If KeQueryPerformanceCounter is based on rdtsc, will it lie on
CPU with variable clock rate (Pentium Mobile etc), or will it correct the
time ?

--PA

"Don Burn" wrote:

> NO, NO, NO, NOOOOOOOOOOO!!!!
>
> Don't use assembler in the kernel, it won't work with 64-bit and in general
> is a VERY STUPID THING TO DO!. Use KeQueryPerformanceCounter, this will use
> the RDTSC if available and it is portable.
>
>
> --
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
>
> "Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
> news:u2nXUVEsEHA.2732@TK2MSFTNGP09.phx.gbl...
> > Try RDTSC, and let's hope that it will not lie due to CPU power
> management
> > schemes. At least the APIC timer lies grossly due to this.
> >
> > --
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > maxim@storagecraft.com
> > http://www.storagecraft.com
> >
> > "Michael Andreas" <dachrinne@t-online.de> wrote in message
> > news:ckfvs4$2sj$01$1@news.t-online.com...
> > > Hi,
> > >
> > > I am seeking for a driver with a
> > > high resolution timestamp (nanosecond).
> > > Who can tell me an example or links?
> > >
> > > Thanks michael
> > >
> > >
> >
> >
>
>
>

Re: driver with timestamp (nanoseconds) by Ray

Ray
Tue Oct 12 15:21:21 CDT 2004

Depends on your definition of "lie". If you're trying to get accurate
absolute time, then yes, it's a lie (but then it never even vaguely
pretended to be that). If you're trying to measure *performance*, then
"KeQueryPerformanceCounter" isn't lying at all.

Pavel A. wrote:
> Maxim noted an interesting detail...
> If KeQueryPerformanceCounter is based on rdtsc, will it lie on
> CPU with variable clock rate (Pentium Mobile etc), or will it correct the
> time ?
>
> --PA
>
> "Don Burn" wrote:
>
>
>>NO, NO, NO, NOOOOOOOOOOO!!!!
>>
>>Don't use assembler in the kernel, it won't work with 64-bit and in general
>>is a VERY STUPID THING TO DO!. Use KeQueryPerformanceCounter, this will use
>>the RDTSC if available and it is portable.
>>
>>
>>--
>>Don Burn (MVP, Windows DDK)
>>Windows 2k/XP/2k3 Filesystem and Driver Consulting
>>Remove StopSpam from the email to reply
>>
>>
>>"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
>>news:u2nXUVEsEHA.2732@TK2MSFTNGP09.phx.gbl...
>>
>>> Try RDTSC, and let's hope that it will not lie due to CPU power
>>
>>management
>>
>>>schemes. At least the APIC timer lies grossly due to this.
>>>
>>>--
>>>Maxim Shatskih, Windows DDK MVP
>>>StorageCraft Corporation
>>>maxim@storagecraft.com
>>>http://www.storagecraft.com
>>>
>>>"Michael Andreas" <dachrinne@t-online.de> wrote in message
>>>news:ckfvs4$2sj$01$1@news.t-online.com...
>>>
>>>>Hi,
>>>>
>>>>I am seeking for a driver with a
>>>>high resolution timestamp (nanosecond).
>>>>Who can tell me an example or links?
>>>>
>>>>Thanks michael
>>>>
>>>>
>>>
>>>
>>
>>

--
../ray\..

Please remove ".spamblock" from my email address if you need to contact
me outside the newsgroup.

Re: driver with timestamp (nanoseconds) by Mark

Mark
Tue Oct 12 19:07:59 CDT 2004

In article <u2nXUVEsEHA.2732@TK2MSFTNGP09.phx.gbl>, maxim@storagecraft.com
says...
> Try RDTSC, and let's hope that it will not lie due to CPU power management
> schemes. At least the APIC timer lies grossly due to this.
>
>
Or KeQueryPerformanceCounter, which is the supported interface.
--

=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
markr@hollistech.com

Re: driver with timestamp (nanoseconds) by Tim

Tim
Thu Oct 14 01:09:56 CDT 2004

"Don Burn" <burn@stopspam.acm.org> wrote:
>
>Don't use assembler in the kernel, it won't work with 64-bit and in general
>is a VERY STUPID THING TO DO!. Use KeQueryPerformanceCounter, this will use
>the RDTSC if available and it is portable.

Only with a multiprocessor HAL. On a uniprocessor HAL, even if RDTSC is
available, KeQueryPerformanceCounter uses the motherboard countdown timer,
which gets you no better than 300ns on WinXP and 830ns on the older
systems.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc