FUNCTION REFERENCE

tic

Start a timer or return an independent timer identifier.

Start a timer or return an independent timer identifier.

Syntax

tic

Syntax

id = tic

Syntax

id = tic()

Without an output, starts or replaces the session timer used by toc. With an output, returns an independent timer identifier and leaves the session timer unchanged. Pass that identifier to toc(id).

Example

id=tic; elapsed=toc(id); elapsed>=0   % true

Differences from MATLAB: Identifiers are positive double values in MatRust; do not depend on their exact value.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.