Processes Execution Time (time)

Returns the execution run time of a command or block

Description

time is an optional builtin which runs a command or block of code and returns it’s running time.

Usage

time command parameters -> <stderr>

time { code-block } -> <stderr>

Examples

Time a command

» time sleep 5
5.000151513

Time a block of code

» time { out "Going to sleep"; sleep 5; out "Waking up" }
Going to sleep
Waking up
5.000240977

Detail

time’s output is written to stderr. However any output and errors written by the commands executed by time will also be written to time’s stdout and stderr as usual.

See Also


This document was generated from builtins/core/time/time_doc.yaml.

This site's content is rebuilt automatically from murex's source code after each merge to the master branch. Downloadable murex binaries are also built with the website.

Last built on Wed Jul 2 22:12:32 UTC 2025 against commit bb72b6fbb72b6fdd502f835172d7d06207ba4ec2c70886c.

Current version is 7.0.2107 (develop) which has been verified against tests cases.