> -----Original Message----- > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of Maxim > Uvarov > Sent: Thursday, September 15, 2016 7:07 PM > To: lng-odp-forward <lng-odp@lists.linaro.org> > Subject: Re: [lng-odp] [API-NEXT PATCHv2] api: odp_time_sub > > On 09/15/16 15:18, Maxim Uvarov wrote: > > there is odp_time_diff(), forget about this patch. > > > Sorry, odp_time_diff() is for difference. odp_time_sub() still needed > for thing like calculate interval for execution. > > Please review api patch. > > Maxim. >
Could you give an example. E.g. this kind of interval calculation does not need substract: t1 = time(); t2 = t1 + wait_time; while (time() < t2) spin(); // now it's time to continue foo(); -Petri