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. Real time for applications

Real time for applications

Scheduled Pinned Locked Moved C / C++ / MFC
questioncss
3 Posts 3 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.
  • B Offline
    B Offline
    BeakX
    wrote on last edited by
    #1

    Hello, I am making an application which requires some form of real time incoporated with multithreading. It need to be exact to less than 1 ms. What is the best method to get this kind of precision timing ?

    T C 2 Replies Last reply
    0
    • B BeakX

      Hello, I am making an application which requires some form of real time incoporated with multithreading. It need to be exact to less than 1 ms. What is the best method to get this kind of precision timing ?

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      BeakX wrote:

      What is the best method to get this kind of precision timing ?

      using another OS than Windows first !!! because Windows is not a RT OS, you cannot have timer accuracy under the millisecond...

      1 Reply Last reply
      0
      • B BeakX

        Hello, I am making an application which requires some form of real time incoporated with multithreading. It need to be exact to less than 1 ms. What is the best method to get this kind of precision timing ?

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        If you are running on Windows operating system, the answer is simple: you can't. Windows is not a real time application and if you need resolution under 10 msec (can change a lot depending of the computer, the load of the CPU, ...) you cannot do that on windows. Better try to look for a real-time operating system. I don't know a lot, I worked already with eCos[^] but it will take some time to get ready with it.

        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