Added timing functions to test multiprocessing.