aboutsummaryrefslogtreecommitdiff
path: root/typ.1
blob: 830b287633f63d35d88607852f64f90a9e0ad9c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.Dd $Mdocdate$
.Dt TYP section
.Os
.Sh NAME
.Nm typ
.Nd measure typing speed
.\" .Sh LIBRARY
.\" For sections 2, 3, and 9 only.
.\" Not used in OpenBSD.
.Sh SYNOPSIS
.Nm typ
.Sh DESCRIPTION
.Pp
.Nm
is a simple utility for measuring and analyzing typing speed.
It reads user input on the tty until a newline is encountered.
Then, it prints some useful statistics.
.Pp
.Nm
measures (among other things)
.Em seconds per word
rather than words per minute.
Unlike other timing utilities, time spent between words is not counted.
As a result,
.Nm
much more accurately measures the typist's raw typing rate, regardless of his
.Dq doubting
rate.
.Pp
.Nm
works when used in a pipe, as long as there is a tty available.
.
.Sh OUTPUT FORMAT
.Pp
.Nm
prints eight lines to standard output.
Each line consists of a number, a tab character and a short explanation.
.Bl -enum -offset indent
.It
total words typed
.It
total characters typed
.It
total characters typed inside words
.It
total seconds spent
.It
total seconds spent inside words
.It
average seconds spent per character
.It
average seconds spent per character inside word
.It
average seconds spent per word
.El
.Pp
To retrieve a specific number, you might use
.Xr sed 1 :
.Bd -literal -offset indent
typ | sed -n '7s/\\t.*//p'
.Ed
.
.Sh AUTHORS
.Pp
.Nm
is written by John Ankarström
.Aq Mt john (a) ankarstrom.se .