add functions to run measure run times on other functions and perform
some basic statistics on it.