Timing function support.
fix re
more re fix
Remove redundancy.
Minor changes
Some tests.
Merge pull request #13 from shans/timingFunctions

Timing function support.