From a7bf6c679b57ba73c81564b0b554df3bb1de1a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 13 Dec 2020 01:01:41 +0100 Subject: typ.c: Re-arrange statistics --- typ.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'typ.c') diff --git a/typ.c b/typ.c index 3f28f18..875f759 100644 --- a/typ.c +++ b/typ.c @@ -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); -- cgit v1.2.3