add timer function to test runtime of specific functions