Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: Calculating processor usage (M68K)



>>- When in the idle loop, set the flag to 'idle'
>>- When entering any activity, set the flag to 'at work'

>And how do you know that you are back at work (without modifying the
>scheduler) ?

pSOS gives you a hook that gets called whenever there's a task switch.
If you have access to a good real-time clock, this can give you
lots of information about idle time.

-- 
        mac the naïf



<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.