add time module, tests and usage