Hi,
Quick question for you guys.
I currently have a script that makes an API call to one of our platform, and returns a result.
I'd like to monitor the execution time of the script.
I thought about encapsulating this script in a bash script, something like
But I'm pretty sure there's a prettier way to do so.
Any clue ?
Ideally, the result should be in ms.
Quick question for you guys.
I currently have a script that makes an API call to one of our platform, and returns a result.
I'd like to monitor the execution time of the script.
I thought about encapsulating this script in a bash script, something like
Code:
#!/bin/bash START=$(date +%s.%N) /path/to/my/script END=$(date +%s.%N) DIFF=$(echo "$END - $START" | bc) echo $DIFF
Any clue ?
Ideally, the result should be in ms.

Comment