There are several functions on the timing pallette such as tick count (ms) and get date/time in seconds. Put these in your code where you want to capture the time, and subtract the outputs between two of them.
Depending on your code, you may need to use flat sequence structures to make sure you capture the time after one function runs and before the next begins.