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. get millisecond

get millisecond

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 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.
  • L Offline
    L Offline
    LeeeNN
    wrote on last edited by
    #1

    How can I get millisecond time? CTime::GetCurrentTime() only return second precise. Thank you.:sigh:

    Z 1 Reply Last reply
    0
    • L LeeeNN

      How can I get millisecond time? CTime::GetCurrentTime() only return second precise. Thank you.:sigh:

      Z Offline
      Z Offline
      Zac Howland
      wrote on last edited by
      #2

      Use ::GetSystemTime(SYSTEMTIME* lpSystemTime); If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac

      L 1 Reply Last reply
      0
      • Z Zac Howland

        Use ::GetSystemTime(SYSTEMTIME* lpSystemTime); If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac

        L Offline
        L Offline
        LeeeNN
        wrote on last edited by
        #3

        Thank you. But how accurate can I trust it?

        Z 1 Reply Last reply
        0
        • L LeeeNN

          Thank you. But how accurate can I trust it?

          Z Offline
          Z Offline
          Zac Howland
          wrote on last edited by
          #4

          Its only as accurate as Windows will let it be, and how accurate your system clock is set to. It updates itself about ever 10 milliseconds, if memory serves me correct. If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac

          D 1 Reply Last reply
          0
          • Z Zac Howland

            Its only as accurate as Windows will let it be, and how accurate your system clock is set to. It updates itself about ever 10 milliseconds, if memory serves me correct. If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac

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

            Zac Howland wrote:

            It updates itself about ever 10 milliseconds...

            For Windows NT. For Windows 9x, it's much less accurate at 55ms.


            "The largest fire starts but with the smallest spark." - David Crow

            "Judge not by the eye but by the heart." - Native American Proverb

            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