
www.Usenet.com
| <-- __Chronological__ --> | <-- __Thread__ --> |
>>- 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__ --> |