Move clock handling to platform modules