Added get_cycle_time

Added current_time function to help in unit tests.
Added unit test for current_time.
Added unit tests for get_cycle_time.
Added new test module with setup that sets up mocked current_time.