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. Possible to speed up system clock?

Possible to speed up system clock?

Scheduled Pinned Locked Moved C / C++ / MFC
performancequestion
7 Posts 4 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.
  • I Offline
    I Offline
    IGx89
    wrote on last edited by
    #1

    Is it possible to (programmatically) make a computer's system clock (time) go a set amount faster, like making the computer's clock move 1100ms every real second so that for instance, if I started speeding it up at 10:00:00, the computer's clock reads 10:00:11 while my (correct) watch reads 10:00:10?

    C A 2 Replies Last reply
    0
    • I IGx89

      Is it possible to (programmatically) make a computer's system clock (time) go a set amount faster, like making the computer's clock move 1100ms every real second so that for instance, if I started speeding it up at 10:00:00, the computer's clock reads 10:00:11 while my (correct) watch reads 10:00:10?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Why would you want to do such a thing ? Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

      I 1 Reply Last reply
      0
      • C Christian Graus

        Why would you want to do such a thing ? Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

        I Offline
        I Offline
        IGx89
        wrote on last edited by
        #3

        More precisely, it is to affect Windows timers, so that timer events happen faster than they normally would. Beyond that, I don't know; I'm researching this for someone else, and that's all the info they've given me.

        D C 2 Replies Last reply
        0
        • I IGx89

          More precisely, it is to affect Windows timers, so that timer events happen faster than they normally would. Beyond that, I don't know; I'm researching this for someone else, and that's all the info they've given me.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Since you are not dealing with a real-time OS, events are not going to happen exactly when you specify anyway. For example, the time specified in the call to SetTimer() is the minimum amount of time that must elapse before a WM_TIMER message is sent to your application.


          "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

          1 Reply Last reply
          0
          • I IGx89

            More precisely, it is to affect Windows timers, so that timer events happen faster than they normally would. Beyond that, I don't know; I'm researching this for someone else, and that's all the info they've given me.

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            Tell them that they are lost at sea. There is no way this is the right approach to their problem. If they want the timer to fire more quickly, they should lower the interval at which it fires. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

            1 Reply Last reply
            0
            • I IGx89

              Is it possible to (programmatically) make a computer's system clock (time) go a set amount faster, like making the computer's clock move 1100ms every real second so that for instance, if I started speeding it up at 10:00:00, the computer's clock reads 10:00:11 while my (correct) watch reads 10:00:10?

              A Offline
              A Offline
              Alexander M
              wrote on last edited by
              #6

              there are several ways to do this. the best one is manipulating the kernel-mode time management. Don't try it, just do it! ;-)

              I 1 Reply Last reply
              0
              • A Alexander M

                there are several ways to do this. the best one is manipulating the kernel-mode time management. Don't try it, just do it! ;-)

                I Offline
                I Offline
                IGx89
                wrote on last edited by
                #7

                Thanks; do you know of any resources or tutorials or source code on that subject?

                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