def is_prime1_timing ( n ): from is_prime1 import is_prime1 from time import perf_counter tic = perf_counter ( ) # Start the clock. is_prime = is_prime1 ( n ) toc = perf_counter ( ) # Stop the clock. print ( 'is_prime1(): is ', n, ' prime? ', is_prime ) print ( ' Computing seconds was ', toc - tic )