[U-Boot] the result of get_timer(0) or get_ticks() does not change

Lance Zhang Lance.Zhang at taihootech.com
Sun Jan 4 10:06:50 CET 2009


Hi all,

I change some codes in u boot, and I want to calculate the time
So I write codes like follows:
Ulong begin = get_ticks();
	for (i = 0; i < 100; i ++)
	{		
		udelay(1000);	
	}
Ulong end  = get_ticks();

But the value of begin and end are always same? I also tried
get_timer(0).

Does anyone have uncounted this problem?

Thanks


More information about the U-Boot mailing list