github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/builtins/core/time/time_doc.yaml (about)

     1  - DocumentID: time
     2    Title: >-
     3      `time`
     4    CategoryID: commands
     5    Summary: >-
     6      Returns the execution run time of a command or block
     7    Description: |-
     8      `time` is an optional builtin which runs a command or block of code and
     9      returns it's running time.
    10    Usage: |-
    11      ```
    12      time command parameters -> <stderr>
    13  
    14      time { code-block } -> <stderr>
    15      ```
    16    Examples: |-
    17      ```
    18      » time sleep 5
    19      5.000151513
    20  
    21      » time { out "Going to sleep"; sleep 5; out "Waking up" }
    22      Going to sleep
    23      Waking up
    24      5.000240977
    25      ```
    26    Detail: |-
    27      `time`'s output is written to STDERR. However any output and errors written
    28      by the commands executed by time will also be written to `time`'s STDOUT
    29      and STDERR as usual.
    30    Synonyms:
    31    Related:
    32      - sleep
    33      - source
    34      - exec