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

CPU Time

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
3 Posts 3 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.
  • M Offline
    M Offline
    Max
    wrote on last edited by
    #1

    What is CPU Time? Some body tell me that this program use 10% CPU Time. what does him mean? and How can I write the code for check CPU Time of my program, what's function support this issue.

    N S 2 Replies Last reply
    0
    • M Max

      What is CPU Time? Some body tell me that this program use 10% CPU Time. what does him mean? and How can I write the code for check CPU Time of my program, what's function support this issue.

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Max++ wrote:

      What is CPU Time?

      Here[^] you go! This was my first hit when I searched.

      Max++ wrote:

      How can I write the code for check CPU Time of my program,

      You can use types in time.h[^] to find the execution time. :)

      Navaneeth How to use google | Ask smart questions

      1 Reply Last reply
      0
      • M Max

        What is CPU Time? Some body tell me that this program use 10% CPU Time. what does him mean? and How can I write the code for check CPU Time of my program, what's function support this issue.

        S Offline
        S Offline
        Stuart Dootson
        wrote on last edited by
        #3

        Max++ wrote:

        Some body tell me that this program use 10% CPU Time.

        That means that the program was using the CPU 10% of the time it was running. So, if it ran for 10 minutes, I would have used 1 minute of CPU time.

        Max++ wrote:

        How can I write the code for check CPU Time of my program,

        Use GetProcessTimes[^]. The total CPU time your program has used is the sum of the user and kernel times. The total elapsed time is the creation time substracted from the current time. You can express the CPU time as a % by dividing the total CPU time by hte elapsed time.

        Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

        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