heart time test code