Lines Matching refs:hertz
12 # USAGE: sampleproc [hertz] # hit Ctrl-C to end sample
48 USAGE: sampleproc [hertz]
50 sampleproc # defaults to 100 hertz
51 sampleproc 1000 # 1000 hertz
58 hertz=100
60 hertz=$1
61 if [[ "$hertz" = *[a-zA-Z]* ]]; then
62 print "ERROR2: $hertz hertz is invalid." >&2
65 if (( hertz > 5000 )); then
66 print "ERROR3: $hertz hertz is too fast (max 5000)." >&2
69 if (( hertz < 1 )); then
70 print "ERROR4: $hertz hertz is too low (min 1)." >&2
83 printf("Sampling at %d hertz... Hit Ctrl-C to end.\n",$1);
105 ' $hertz