tic
Start a timer.
Syntax
Section titled “Syntax”tictStart = ticDescription
Section titled “Description”Records the current time. Pair with toc to measure elapsed wall-clock time. With a return value, returns a timer ID that can be passed to toc later — useful for nested or concurrent timing.
Examples
Section titled “Examples”tic; pause(2); toc % prints '~2.0s't1 = tic; ... toc(t1) % nested timing