我试图计算时间刻度,但是tx_time_get()总是返回0,无论我把它放在ThreadX E.G的模块或模块管理器中:
ULONG start_time, current_time=0, cycle_time=0;
start_time= tx_time_get();
current_time=tx_time_get();
cycle_time= current_time-start_time;发布于 2022-09-07 10:57:56
程序似乎没有达到系统时钟的最小分辨率,在默认情况下是10 is,所以我需要通过更改TX_TIMER_TICKS_PER_SECOND来降低分辨率,以计算在某个块上花费的时间。然而,它会降低性能。
https://stackoverflow.com/questions/73614278
复制相似问题