add sleep and cpu tick time access interface.