Rename cgsleep_prepare_r as cgtimer_time to get time in cgtimer_t format and call cgsleep_prepare_r as a macro for cgtimer_time
Provide cgtimer_to_ms helper functions.
Provide cgtimer_sub helper functions.