Clean up timing functions.