[En-Nut-Discussion] NutGetMillis is a _very expensive_ function on Ethernut3

Alain M. alainm at pobox.com
Wed Aug 20 16:50:28 CEST 2008

duane ellis escreveu:
> Harald Kipp wrote:
>  >> IMHO, using an array instead of a structure will be more flexible. 
> This way we can define different indices for different targets.
> I do not think the ARRAY should be public, it should be 100% hidden 
> "static to a chip/target specific C file", and the C file should 
> implement access functions to get the clock values. Data Hiding is 
> good.  How that C file/function does its job internally is up to the 
> implementor.

Specialy because it can be made in a way that gets optimyzed away by GCC.


More information about the En-Nut-Discussion mailing list