in reply to Re: stop counting (process)
in thread stop counting (process)

Or Time::HiRes (Time::HiRes::sleep(0.10);), if using Perl version 5.7.3 or greater.