You can use the Windows Performance Monitor to monitor what resources your program uses.
1. Go to the console and run:
2. Click Add (the + button)
3. Select Process and select your process from the list.
4. Select counters:
% Process Time
% Privileged Time
Private Bytes
Page Faults Delta |
Press Add.
Run the program and stop the collector when your program ends.
% Process Time shows the total CPU used by your program.
% Privileged Time shows the time executing system calls.
Private Bytes shows the memory used exclusively by your program.
Page Faults Delta shows how much paging your program is causing.
If you want further help please ask, but you have enough to get you started.