created simple timer class, added unit tests for it