Created
June 30, 2018 19:02
-
-
Save bazzilio/c4bebb44de781ce495bd4164d516cfa6 to your computer and use it in GitHub Desktop.
bash_err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bazz@bazz-Vostro-5568 ~ $ cat err | |
echo "alias x='bash 20180630_Saturday/20180630.sh'" | |
export TIMESTAMP_LAST=`date +"%s%N"` | |
export TIMESTAMP_NOW=`date +"%s%N"` | |
time for i in {1..10}; do | |
(echo "Some test"; sleep 1) |while read -r line ; do | |
echo "I: $i" | |
TIMESTAMP_NOW=`date +"%s%N"` | |
echo "NOW : $TIMESTAMP_NOW" | |
echo "LAST: $TIMESTAMP_LAST" | |
echo "DIF : $((${TIMESTAMP_NOW}-${TIMESTAMP_LAST}))" | |
TIMESTAMP_LAST=${TIMESTAMP_NOW} | |
echo "LAST: $TIMESTAMP_LAST" | |
done | |
done | |
bazz@bazz-Vostro-5568 ~ $ bash err | |
alias x='bash 20180630_Saturday/20180630.sh' | |
I: 1 | |
NOW : 1530385300154721203 | |
LAST: 1530385300150998453 | |
DIF : 3722750 | |
LAST: 1530385300154721203 | |
I: 2 | |
NOW : 1530385301158051110 | |
LAST: 1530385300150998453 | |
DIF : 1007052657 | |
LAST: 1530385301158051110 | |
I: 3 | |
NOW : 1530385302159618405 | |
LAST: 1530385300150998453 | |
DIF : 2008619952 | |
LAST: 1530385302159618405 | |
I: 4 | |
NOW : 1530385303161057685 | |
LAST: 1530385300150998453 | |
DIF : 3010059232 | |
LAST: 1530385303161057685 | |
I: 5 | |
NOW : 1530385304163622104 | |
LAST: 1530385300150998453 | |
DIF : 4012623651 | |
LAST: 1530385304163622104 | |
I: 6 | |
NOW : 1530385305164981264 | |
LAST: 1530385300150998453 | |
DIF : 5013982811 | |
LAST: 1530385305164981264 | |
I: 7 | |
NOW : 1530385306170580509 | |
LAST: 1530385300150998453 | |
DIF : 6019582056 | |
LAST: 1530385306170580509 | |
I: 8 | |
NOW : 1530385307171966016 | |
LAST: 1530385300150998453 | |
DIF : 7020967563 | |
LAST: 1530385307171966016 | |
I: 9 | |
NOW : 1530385308174108580 | |
LAST: 1530385300150998453 | |
DIF : 8023110127 | |
LAST: 1530385308174108580 | |
I: 10 | |
NOW : 1530385309179168981 | |
LAST: 1530385300150998453 | |
DIF : 9028170528 | |
LAST: 1530385309179168981 | |
real 0m10.025s | |
user 0m0.000s | |
sys 0m0.004s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment