diff options
author | John Ankarström <john@ankarstrom.se> | 2020-12-13 01:01:41 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2020-12-13 01:01:41 +0100 |
commit | a7bf6c679b57ba73c81564b0b554df3bb1de1a5d (patch) | |
tree | c93a6ce2b0496057bc0a6a5ffe2b5f43329a3337 /typ.c | |
parent | 43ff48ff49c57f6c30795b7a9acadf1f9e638e8d (diff) | |
download | typ-a7bf6c679b57ba73c81564b0b554df3bb1de1a5d.tar.gz |
typ.c: Re-arrange statistics
Diffstat (limited to 'typ.c')
-rw-r--r-- | typ.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -72,11 +72,11 @@ int main() { printf("%d\twords\n", words); printf("%d\tcharacters\n", ci - 1); printf("%d\tcharacters inside words\n", nonspace); - printf("%.4f\tseconds in total\n", finish - ct[0]); + printf("%.4f\tseconds\n", finish - ct[0]); + printf("%.4f\tseconds inside words\n", tt); printf("%.4f\tseconds per character\n", tt / (ci - 1)); printf("%.4f\tseconds per character inside word\n", tt / nonspace); printf("%.4f\tseconds per word\n", tt / words); - printf("%.4f\tseconds inside words\n", tt); /* restore original terminal settings */ tcsetattr(ttyfd, TCSANOW, &orig); |