Add measure-time command
This commit is contained in:
parent
1e56356309
commit
29f1c461f2
1 changed files with 5 additions and 0 deletions
5
soscmd-measure-time
Executable file
5
soscmd-measure-time
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
TIME=$(($(date +%s%N)/1000000))
|
||||||
|
$@
|
||||||
|
TIME=$(($(($(date +%s%N)/1000000))-$TIME))
|
||||||
|
echo ":: Execution took ${TIME}ms ($((${TIME}/1000))s)"
|
Loading…
Reference in a new issue