soscmd/soscmd-measure-time
2023-07-17 02:58:45 +02:00

5 lines
146 B
Bash
Executable file

#!/bin/bash
TIME=$(($(date +%s%N)/1000000))
$@
TIME=$(($(($(date +%s%N)/1000000))-$TIME))
echo ":: Execution took ${TIME}ms ($((${TIME}/1000))s)"