variable

Bash TIMEFORMAT

Control the reserved word time report. %R is elapsed seconds; %U and %S are CPU seconds.

Formal Syntax & Structure

bash syntaxbash
TIMEFORMAT=format

Return Value

format string

Control the reserved word time report. %R is elapsed seconds; %U and %S are CPU seconds.

Working Example

Example Snippetbash
TIMEFORMAT='measurement complete'time { printf 'payload\n'; }printf 'status=%s\n' "$?"
Bash Reference