Sample code for the real-time system resource monitor app on stevescodingblog.co.uk