TIC

From Jacket Wiki

(Redirected from TOC)
Jump to: navigation, search
Back to Function List

Measure performance using stopwatch timer

Usage

Jacket for M Language
    Supported Syntax
    
tic; any_statements; toc;
tic; any_statements; tElapsed=toc;
tStart=tic; any_statements; toc(tStart);
tStart=tic; any_statements; tElapsed=toc(tStart);
    

GFOR Supported

No

GCOMPILE Supported

No

Types Supported

-  GDOUBLE   GSINGLE   GLOGICAL   GINT32   GINT8   GUINT32   GUINT8   COMPLEX 

Types Not Supported

-

CPU usageJacket only contains GPU computing functions. To run functions on the CPU, try one of the MathWorks products:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/tic.html http://www.mathworks.com/access/helpdesk/help/techdoc/ref/toc.html

Notes

Be sure to use GEVAL and GSYNC properly with TIC/TOC statements to make sure that Jacket's lazy evaluation has finished before the final TOC. Use TIMEIT for robust timing of both GPU and CPU code.

See Also

TIC, TOC, GEVAL, GSYNC, TIMEIT

Views