Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Nanosecond timer resolution for Windows OS

Nanosecond timer resolution for Windows OS

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jrthatcher
    wrote on last edited by
    #1

    I previously wrote a Visual C++ app to perform digital I/O functions on a Windows9x machine. I/O timing was controlled using delay loops and watching the I/O signals on a logic analyzer. I know this is a kluge way of doing I/O timing, but I haven't been able to find any information on a nanosecond resolution timer (besides FILETIME) for a Windows based system. I've tried QueryPerformanceFrequency/Counter, but alas, not enough resolution. All was well until my in-house app started being installed on other PC's with Win2K and XP. So now I'm back to square one. Is it a hopeless cause trying to find a nanosecond resolution timer for Windows OS's? I've done GPS timing resolution before, but that requires a GPS receiver which is overkill for what we're trying to do. Please help! Nifer X|

    M 1 Reply Last reply
    0
    • J jrthatcher

      I previously wrote a Visual C++ app to perform digital I/O functions on a Windows9x machine. I/O timing was controlled using delay loops and watching the I/O signals on a logic analyzer. I know this is a kluge way of doing I/O timing, but I haven't been able to find any information on a nanosecond resolution timer (besides FILETIME) for a Windows based system. I've tried QueryPerformanceFrequency/Counter, but alas, not enough resolution. All was well until my in-house app started being installed on other PC's with Win2K and XP. So now I'm back to square one. Is it a hopeless cause trying to find a nanosecond resolution timer for Windows OS's? I've done GPS timing resolution before, but that requires a GPS receiver which is overkill for what we're trying to do. Please help! Nifer X|

      M Offline
      M Offline
      MaximE 0
      wrote on last edited by
      #2

      The best you can get it a 100ns resolution. Search for the "multimedia timer" in MSDN.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups