microsecond precision timing in VxD's and kernel drivers?

Discussion in 'Windows Vista Drivers' started by Guillaume, Oct 24, 2003.

  1. Guillaume

    Guillaume Guest

    Hi,

    I'm looking for a way to get reasonable 1-microsecond accurate timing
    in a VxD (9x/Me) on one hand, and in a kernel-mode driver (NT/2000/XP)
    on the other hand.

    What I need is a way to measure some delays inside the driver. I don't
    need to "schedule" anything. So it's just a measurement.
     
    Guillaume, Oct 24, 2003
    #1
    1. Advertisements

  2. Guillaume

    Josh Dahlby Guest

    I think you'll want to look at KeQueryPerformanceCounter.
     
    Josh Dahlby, Oct 24, 2003
    #2
    1. Advertisements

  3. Guillaume

    Guillaume Guest

    I think you'll want to look at KeQueryPerformanceCounter.

    Thanks.

    I think this isn't an option in a VxD, though?
     
    Guillaume, Oct 24, 2003
    #3
  4. Guillaume

    Josh Dahlby Guest

    I don't know. I do know it works in a driver on XP. If it isn't available
    in a VxD, maybe you could use the user mode equivalent,
    QueryPerformanceCounter.
     
    Josh Dahlby, Oct 24, 2003
    #4
  5. Guillaume

    heinz baer Guest

    I think this isn't an option in a VxD, though?

    Correct. Use VTD_Get_Real_Time
     
    heinz baer, Oct 27, 2003
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.