Apply Lucas Wei's precise model to profile context switch

Ref: https://gitcafe.com/embedded2013/Labs/tree/SOL-8
TODO: Fix uncertain value while both tick count and STCVR are zero