blob: 079faa6f5fce30b159925ff8665ed4bfb104b49a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env sh
# estimate sytem boot time
# [debug] enable execution tracing
#set -x
set -e
# raw input data
#date +%s
#sysctl kern.cp_time | awk -F= '{print($0)}'
#printf "sec\n" | column -t
for N in $(seq 0 45) ; do
#printf "${N} ${t0_est}\n" | column -t
awk -f ckcptime.awk
sleep $( awk 'BEGIN {print( rand()^2.0 + 1.0 )}' )
done
# [debug] disable execution tracing
set +x
|