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. CPU Time of a process

CPU Time of a process

Scheduled Pinned Locked Moved C / C++ / MFC
jsonquestion
4 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.
  • D Offline
    D Offline
    DevMentor org
    wrote on last edited by
    #1

    Does anyone know what API I can use to determine the CPU time used by a process? This is not the same as elapsed time!

    Yours Truly, The One and Only!

    D A 2 Replies Last reply
    0
    • D DevMentor org

      Does anyone know what API I can use to determine the CPU time used by a process? This is not the same as elapsed time!

      Yours Truly, The One and Only!

      D Offline
      D Offline
      DevMentor org
      wrote on last edited by
      #2

      Alright it seem the GetProcessTimes API does what I was looking for ;P

      Yours Truly, The One and Only!

      1 Reply Last reply
      0
      • D DevMentor org

        Does anyone know what API I can use to determine the CPU time used by a process? This is not the same as elapsed time!

        Yours Truly, The One and Only!

        A Offline
        A Offline
        aks
        wrote on last edited by
        #3

        You can also use PDH library for this.

        AJay

        D 1 Reply Last reply
        0
        • A aks

          You can also use PDH library for this.

          AJay

          D Offline
          D Offline
          DevMentor org
          wrote on last edited by
          #4

          Great! Thanks Ajay, I will keep this in mind for future uses.

          Yours Truly, The One and Only!

          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