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. Who can i get CPU preformance in run time ?

Who can i get CPU preformance in run time ?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++json
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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi All 1.I using MFC in my application , and i need to type on screen the preformance of the CPU in runtime. How can i know the preformance ? what API can i use ? 2.I need to show some FORM (window) that i have in my app. on top, how can i do it ? Thanks for any halp.

    K 1 Reply Last reply
    0
    • L Lost User

      Hi All 1.I using MFC in my application , and i need to type on screen the preformance of the CPU in runtime. How can i know the preformance ? what API can i use ? 2.I need to show some FORM (window) that i have in my app. on top, how can i do it ? Thanks for any halp.

      K Offline
      K Offline
      khan
      wrote on last edited by
      #2

      1- GetPerformaceInfo(...)[^] This function get you the needed info, but the requirements are high: Client: Windows XP Server Windows 2003 You can also use: GetProcessTimes(...)[^] You could enumerate all the processes using EnumProcesses() api, and use GetProcessTimes(...) with it. 2- You could use: MFC: SetWindowPos(&wndTopMost,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE); Win32: SetWindowPos(hWnd,HWND_TOPMOST,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE); this is this.

      D 1 Reply Last reply
      0
      • K khan

        1- GetPerformaceInfo(...)[^] This function get you the needed info, but the requirements are high: Client: Windows XP Server Windows 2003 You can also use: GetProcessTimes(...)[^] You could enumerate all the processes using EnumProcesses() api, and use GetProcessTimes(...) with it. 2- You could use: MFC: SetWindowPos(&wndTopMost,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE); Win32: SetWindowPos(hWnd,HWND_TOPMOST,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE); this is this.

        D Offline
        D Offline
        Dudi Avramov
        wrote on last edited by
        #3

        Use this

        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