added a stopwatch for functions