When CONFIG_SCHED_TICKLESS_TICK_ARGUMENT enabled, we can use up_timer_gettick to get ticks for better performance.