Ruud H.G. van Tol on Thu, 06 Jul 2023 14:28:23 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: How to do t_INT bit operations? |
On 2023-07-06 11:51, hermann@stamm-wilbrandt.de wrote:
On 2023-07-06 09:56, Ruud H.G. van Tol wrote:getabstime() is similar to Arduino "millis()" (time since start of Arduino board). But for determining runtime of single command or partial sequence of commandsI hardly ever use gettime(), I prefer to use stored getabstime() values, with printf.gettime() avoids having to do subtraction of time after and time before. ? ?gettime gettime(): milliseconds of CPU time used since the last call to gettime. ? ?getabstime getabstime(): milliseconds of CPU time since startup.
Yes, and I prefer the stored getabstime() values to make it simple to report both overall- and sub- period-values. Similar for getwalltime(). -- Ruud