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. how to check the execution time of any program that is execute

how to check the execution time of any program that is execute

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorial
3 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.
  • S Offline
    S Offline
    shiva shankar
    wrote on last edited by
    #1

    hi, how to find the execution time(time taken to execute) of any program in vc++ please help me out.

    S 1 Reply Last reply
    0
    • S shiva shankar

      hi, how to find the execution time(time taken to execute) of any program in vc++ please help me out.

      S Offline
      S Offline
      shiraztk
      wrote on last edited by
      #2

      Hi Call GetTickCount when your application starts. Refer MSDN for GetTickCount. Call GetTickCount again when your application stops. Now substract the both to get the execution time. This will work fine if your application dont continuously execute for more than 49 days. If so you will have to do some extra work. Regards The Best Relligion is Science. Once you understand it, you will know God.

      S 1 Reply Last reply
      0
      • S shiraztk

        Hi Call GetTickCount when your application starts. Refer MSDN for GetTickCount. Call GetTickCount again when your application stops. Now substract the both to get the execution time. This will work fine if your application dont continuously execute for more than 49 days. If so you will have to do some extra work. Regards The Best Relligion is Science. Once you understand it, you will know God.

        S Offline
        S Offline
        shiva shankar
        wrote on last edited by
        #3

        thanks a lot for your suggestion. but i want find the time exactly, so i need to find number exection cycle of the program. with this execution cycle i can find the time taken by the code. so please can you help me out in find execution cycle any code. Regards and Thanking you sham

        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