clock interface for testing