[En-Nut-Discussion] NutGetMillis is a _very expensive_ function on Ethernut3
Harald Kipp
harald.kipp at egnite.de
Wed Aug 20 11:12:53 CEST 2008
Hi Duane,
duane ellis wrote:
> (1) create a small structure with a few "uint32_t" in it - one for each
> frequency, sort of a cache.
IMHO, using an array instead of a structure will be more flexible. This
way we can define different indices for different targets.
> The idea is this - do *LAZY* calculations.
Right now we have no more than 2 clocks, which are typically all used.
The advantage is in long term with more clocks becoming available. I'll
give it a try.
Harald
More information about the En-Nut-Discussion
mailing list