No. of Task Switches

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
prabuinet

No. of Task Switches

Post by prabuinet »

how can I find how many task switches occured in a second?
hartyl

RE:No. of Task Switches

Post by hartyl »

what about counting? everytime you do a taskswitch, increment a variable. when a second is over (or maybe 10 seconds), you stop and print that value...
but, if you use a timer, then it's quite easy. the timer-interrupt happens every time; if you programmed the time between the interrupts, you can calculate it.
Post Reply