Timing autonomous in Robotc

hI guys i have a question how would you time your autonomous in robotc using debugger stream. What line of code used for that, how is it done? PLEASE help my tournament is tomorrow PLEASE PLEASE

Perhaps something like this.

task autonomous()
    long timeStart = nSysTime;
    // Your autonomous code
    long timeEnd = nSysTime;

    writeDebugStreamLine("Auton took %.2f seconds", (timeEnd - timeStart) / 1000.0 );