[7m time [0;0m

`time [-p] pipeline`

Measures the time taken by a command / pipeline.  It uses the `getrusage()`
function from `libc`.

Note that time is a KEYWORD, not a builtin!



### Oil Keywords

#### const 

Initializes a constant name to the Oil expression on the right.

    const c = 'mystr'        # equivalent to readonly c=mystr
    const pat = / digit+ /   # an eggex, with no shell equivalent

It's either a global constant or scoped to the current function.

#### var

Initializes a name to the Oil expression on the right.

    var s = 'mystr'        # equivalent to declare s=mystr
    var pat = / digit+ /   # an eggex, with no shell equivalent

It's either a global or scoped to the current function.

#### setvar

Like shell's `x=1`, `setvar x = 1` either:

- Mutates an existing variable (e.g. declared with `var`)
- Creates a new **global** variable.

It's meant for interactive use and to easily convert existing shell scripts.

New Oil programs should use `set`, `setglobal`, or `setref` instead of
`setvar`.

#### set 

A shorter name for `setlocal` in the Oil language.  Requires `shopt -s
parse_set`, because otherwise it would conflict with the `set` builtin.  Use
`builtin set -- 1 2 3` to get the builtin, or `shopt -o` to change options.

#### setlocal

Mutates an existing variable in the current scope.  If it doesn't exist, the
shell exits with a fatal error.

#### setglobal

Mutates a global variable.  If it doesn't exist, the shell exits with a fatal
error.

#### setref

Mutates a variable through a named reference.  TODO: Show example.



### Coil Keywords
