[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linrad] Re: Resources
The current problem I am looking for a solution to is how to find
the CPU load under Windows. Under Linux there is getrusage but I
have not been able to find what the corresponding Windows call is.
(If there is one.)
Leif,
have you looked at the API GetProcessTimes ? It gives you the
user-mode and the kernel-mode CPU time used by the process. You could
then divide it by the elapsed time (obtained through the use of the
QueryPerformanceCounter API). This will give you of course not the
totale CPU load of the PC, but just the percentage of the load
accountable to your program.
73 Alberto I2PHD
#############################################################
This message is sent to you because you are subscribed to
the mailing list <linrad@xxxxxxxxxxxxxxxxxxxxx>.
To unsubscribe, E-mail to: <linrad-off@xxxxxxxxxxxxxxxxxxxxx>
To switch to the DIGEST mode, E-mail to <linrad-digest@xxxxxxxxxxxxxxxxxxxxx>
To switch to the INDEX mode, E-mail to <linrad-index@xxxxxxxxxxxxxxxxxxxxx>
Send administrative queries to <linrad-request@xxxxxxxxxxxxxxxxxxxxx>
LINRADDARNIL