soscmd/soscmd-measure-time

6 lines
146 B
Text
Raw Normal View History

2023-07-17 02:58:45 +02:00
#!/bin/bash
TIME=$(($(date +%s%N)/1000000))
$@
TIME=$(($(($(date +%s%N)/1000000))-$TIME))
echo ":: Execution took ${TIME}ms ($((${TIME}/1000))s)"