checkall: number of iterations is command line arg
checkone stops if time used > 15 seconds