79806186

Date: 2025-10-31 20:46:01
Score: 0.5
Natty:
Report link

I find the $SECONDS feature available in MACOS zsh to be easy to use

start_time=$SECONDS

... your code to measure

end_time=$SECONDS
elapsed=$((end_time - start_time))
echo "Elapsed time: $elapsed seconds"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ron at BiophysicsLab