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. Database & SysAdmin
  3. System Admin
  4. CPU time inside a C++ program on Windows NT

CPU time inside a C++ program on Windows NT

Scheduled Pinned Locked Moved System Admin
c++question
4 Posts 3 Posters 6 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.
  • N Offline
    N Offline
    Nicolas Pabion
    wrote on last edited by
    #1

    Is there a possibility to measure the CPU time of a C++ program part under Windows NT, similar to exploiting the processing report files in the directory /proc under Solaris? Thanks!

    M D 2 Replies Last reply
    0
    • N Nicolas Pabion

      Is there a possibility to measure the CPU time of a C++ program part under Windows NT, similar to exploiting the processing report files in the directory /proc under Solaris? Thanks!

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Check out the PDH functions in the Platform SDK under Base Services\Performance Monitoring. --Mike-- http://home.inreach.com/mdunn/ The Signature, back by popular demand: Buffy. Pajamas.

      N 1 Reply Last reply
      0
      • M Michael Dunn

        Check out the PDH functions in the Platform SDK under Base Services\Performance Monitoring. --Mike-- http://home.inreach.com/mdunn/ The Signature, back by popular demand: Buffy. Pajamas.

        N Offline
        N Offline
        Nicolas Pabion
        wrote on last edited by
        #3

        Thanks Micheal! Nicolas

        1 Reply Last reply
        0
        • N Nicolas Pabion

          Is there a possibility to measure the CPU time of a C++ program part under Windows NT, similar to exploiting the processing report files in the directory /proc under Solaris? Thanks!

          D Offline
          D Offline
          Dark Angel
          wrote on last edited by
          #4

          Take a look at GetThreadTime() and GetProcessTime() API calls ( they are NT-only). "Harland Pepper, would you stop naming nuts" - Harland Pepper

          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