Add time functions.
Add time function tests.