diff options
author | John Ankarström <john@ankarstrom.se> | 2020-12-13 01:09:46 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2020-12-13 01:09:46 +0100 |
commit | bfa1b3a0783c6f56996c23bc6662ef597c405057 (patch) | |
tree | 60b667cce57643ab1f860deb890ecf6bf4d89544 | |
parent | a7bf6c679b57ba73c81564b0b554df3bb1de1a5d (diff) | |
download | typ-bfa1b3a0783c6f56996c23bc6662ef597c405057.tar.gz |
Add manual (typ.1)
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | typ.1 | 67 |
2 files changed, 71 insertions, 0 deletions
@@ -1,2 +1,6 @@ typ: typ.c gcc -o $@ $< + +install: + install typ /usr/local/bin/ + install -m 644 typ.1 /usr/share/man/man1/ @@ -0,0 +1,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 . |