clockevents: Add direct ktime programming function