
Hi Wolfgang,
On Tue, May 31, 2011 at 3:49 PM, Wolfgang Denk wd@denx.de wrote:
Dear Simon Glass,
In message BANLkTi=T_pzB9TOPtQuNZXarvQsHN80P3g@mail.gmail.com you wrote:
I do think it would be nice to put a time_ prefix before all the time functions, but this is a pretty minor point.
Agree.
By now, I also find get_timer() kind of misleading - one might expect from that name that it allocates one of (eventually several available) timers. We should probably rename it into time_read(); the newly suggested function would then become time_delta() [or time_diff()].
I would personally like to see two sets of parallel time_* functions, one for milliseconds and one for microseconds. The microsecond API is going to be critical for boot profiling and I see no reason to think about it now rather than later.
Regards,
Graeme