add timeout support to 'sample_clients/rtimestampc.rb'