[code]#!/bin/bashnow=`date +\'%Y-%m-%d %H:%M:%S\'`start_time=$(date --date=\"$now\" +%s);#你的脚本now=`date +\'%Y-%m-%d %H:%M:%S\'`end_time=$(date --date=\"$now\" +%s);echo \"used time:\"$((end_time-start_time))\"s\"
[code]#!/bin/bashnow=`date +\'%Y-%m-%d %H:%M:%S\'`start_time=$(date --date=\"$now\" +%s);#你的脚本now=`date +\'%Y-%m-%d %H:%M:%S\'`end_time=$(date --date=\"$now\" +%s);echo \"used time:\"$((end_time-start_time))\"s\"