Add clock interface and two implementations, one for hardware and one for software when reading logs