Hi Then, The OS time tick resolution is defined by OS_TICKS_PER_SEC.
If you want higher time resolution, use CPU time. The default CPU time tick is 1 microsecond, function os_cputime_delay_ticks() should be used. Moreover, you can change CPU timing frequency to change CLOCK_FREQ and OS_CPUTIME_FREQ in syscfg.yml. Jiacheng > 在 2017年1月26日,16:00,then yon <[email protected]> 写道: > > Dear Support, > > I'm working on a timing critical app; but the os_time_delay didn't gave me a > precise timing. > > Currently the min delay i can get is more than 2ms with os_time_delay > function. > > Somehow i notice that the clock time have up to microsecond precision; but > how do i make a delay with that? > > Thank you. > > Regards, > > Then Yoong Ze
