Are you curious how busy your Windows Mobile device's processor is? Try this chunk of code using
GetIdleTime().
DWORD start = ::GetTickCount();
DWORD idle_start = ::GetIdleTime();
Sleep( 1000 );
DWORD stop = ::GetTickCount();
DWORD idle_end = ::GetIdleTime();
float percent_used = 100 - ( 100.0f * ( idle_end - idle_start ) ) / static_cast< float >( stop - start );
NKDbgPrintfW( L"Processor usage: %d%%\r\n", ( int )percent_used );
For me, this prints:
Processor usage: 3%
Enjoy!