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. Tools to Measure Run Time

Tools to Measure Run Time

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiodebuggingtoolsquestion
2 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.
  • J Offline
    J Offline
    jerry1211a
    wrote on last edited by
    #1

    Hello, I am running a simple C console application in VS.net. I want to be able to measure the run time between certain lines of code, and also the time required to run the entire application, etc. Are there any tools/libraries that I can add to my program to do this? Will the debugger allow me to do some of this? :} Jerry

    N 1 Reply Last reply
    0
    • J jerry1211a

      Hello, I am running a simple C console application in VS.net. I want to be able to measure the run time between certain lines of code, and also the time required to run the entire application, etc. Are there any tools/libraries that I can add to my program to do this? Will the debugger allow me to do some of this? :} Jerry

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      In the viual studio there is menu called profie. it can be used for finding the time taken by entire application, time spend in each function etc. check http://www.codersource.net/win32_Debugging_VC.html[^] Simply if u want to find the time taken for a single/group of statement, put OutputDebugString() before and after that statement. Then using the debug viewer u can get the time.. nave

      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