How do I measure execution time of command/script in xonsh? In bash I can do it with time
eg:
> time sleep 1
real 0m1,002s
user 0m0,001s
sys 0m0,001s
How to do it in xonsh?
How do I measure execution time of command/script in xonsh? In bash I can do it with time
eg:
> time sleep 1
real 0m1,002s
user 0m0,001s
sys 0m0,001s
How to do it in xonsh?
There's no shell builtin
time
inxonsh
. I use time(1), which is usually installed in most linux distros, but should be available in your package manager.or if you want it to more closely match the output of the bash builtin
or you can roll your own (for wall time)