Skip to content
Snippets Groups Projects
Commit 74383e5f authored by dgelessus's avatar dgelessus
Browse files

Add test for :time command

parent 339386ca
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id: tags:
``` prob
:help :time
```
%% Output
:time COMMAND [ARGS ...]
Execute the given command and measure how long it takes to execute.
%% Cell type:markdown id: tags:
`:time` works for commands.
%% Cell type:code id: tags:
``` prob
:time :groovy Thread.sleep(1000)
```
%% Output
Execution time: 1.029668114 seconds
null
%% Cell type:markdown id: tags:
`:time` works for expressions.
%% Cell type:code id: tags:
``` prob
:time {x | x : 1..100000 & x mod 12345 = 0}
```
%% Output
Execution time: 1.079495268 seconds
{12345,24690,37035,49380,61725,74070,86415,98760}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment