blob: b47117c0c1cc1937347cbce36b63e1ffff709512 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# set -x
set -e
t2=$( perl -m 'Time::HiRes' -e 'print(Time::HiRes::time())' )
t0=$( date +%s )
t1=$( date +%s )
t3=$( perl -m 'Time::HiRes' -e 'print(Time::HiRes::time())' )
# t2=$( sqlite3 ':memory:' "select 86.4E3 * (julianday('now') - julianday('1970-01-01'));" )
# t3=$( sqlite3 ':memory:' "select 86.4E3 * (julianday('now') - julianday('1970-01-01'));" )
t4=$( perl -m 'Time::HiRes' -e 'print(Time::HiRes::time())' )
t5=$( perl -m 'Time::HiRes' -e 'print(Time::HiRes::time())' )
echo ${t0} ${t1} ${t2} ${t3} ${t4} ${t5} |\
awk '{ print($2 - $1, $4 - $3, $6 - $5) }'
|