Update clock.cpp

added crystal implementation