time: Rework timekeeping functions to take timekeeper ptr as argument