#!/bin/bash START=$(date +%s) # do something # start your script work here # SOME CODES # SOME CODES # SOME CODES # SOME CODES # your logic ends here END=$(date +%s) DIFF=$(( $END - $START )) echo "It took $DIFF seconds"
Hide Comments
Hide Comments