summaryrefslogtreecommitdiff
path: root/ckcptime.sh
blob: 697854bc66750fdf1e1b7f44b2583e538bdd1abb (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 15) ; 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