I am make an typing speed test for our hr dept. This is an remake, but more complex, since this one is not simply for typing English. The previous one I had 3 threads, one for timer, one for keypress counter, and last is STDIN line for candidate to type.
But this time, we have Chinese(Big5/GB2312) chars ( or possibly Japanese later). So I couldn't simply count by keypressed. and I have no idea how to deal with the last line(stdin not entered) when the timer is done.
Any suggestion for this? ps. I am on Win32. Thanks in advance