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. time in msec

time in msec

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

    Hi could you please remind me how I can get time in msec? time() returns time in sec but I need more precision. Thanks

    G A G 3 Replies Last reply
    0
    • T Themis

      Hi could you please remind me how I can get time in msec? time() returns time in sec but I need more precision. Thanks

      G Offline
      G Offline
      Gary R Wheeler
      wrote on last edited by
      #2

      GetLocalTime[^] retrieves the local time.


      Software Zen: delete this;

      1 Reply Last reply
      0
      • T Themis

        Hi could you please remind me how I can get time in msec? time() returns time in sec but I need more precision. Thanks

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

        Absolute system time or a timer to calculate time differences? Don't try it, just do it! ;-)

        1 Reply Last reply
        0
        • T Themis

          Hi could you please remind me how I can get time in msec? time() returns time in sec but I need more precision. Thanks

          G Offline
          G Offline
          Ghasrfakhri
          wrote on last edited by
          #4

          Hi GetTickCount() retrieves the number of milliseconds the system has been running. If you need MicroSecunds You can use QueryPerformanceCounter() and QueryPerformanceFrequency() Iman Ghasrfakhri

          T 1 Reply Last reply
          0
          • G Ghasrfakhri

            Hi GetTickCount() retrieves the number of milliseconds the system has been running. If you need MicroSecunds You can use QueryPerformanceCounter() and QueryPerformanceFrequency() Iman Ghasrfakhri

            T Offline
            T Offline
            Themis
            wrote on last edited by
            #5

            Thank you all for you answers!

            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