What's the simplest way to measure the amount of time a piece of code takes using QTimer? I just want to time the code and convert it to text to output to a message box. Thanks in advance for any help.