working clock that refreshes the time