Creating a word per minute typing counter thingy

For my next 'project' I'd like to develop a command line program (Bash) for *nix which tells the typist how many words they are typing per minute. (I'd actually like to do this as a shell script but I'm not sure if it can be done so I'm going back to C++.) The program would run for one minute to mak e it easy for calculations. What I don't know is how to use a timer in C++ and how to count how many words have been typed. Please could someone at least start me off in the right direction.

Remember it's *nix not M$ windoze!

Many thanks,


This has been crossposted to the linux programming board.

"Let us smite the evil slime eating hordes who may befall us on our quest to be the ultimate programmers of the known universe!"
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!