Data source: http://rosettacode.org/wiki/Time_a_function