Add measure-time command

This commit is contained in:
StarOpenSource 2023-07-17 02:58:45 +02:00
parent 1e56356309
commit 29f1c461f2

5
soscmd-measure-time Executable file
View 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)"