time: move timer APIs to include/time.h