DSPRelated.com
Forums

using bios to measure time

Started by fedelegger January 28, 2002
Hi,
I'm trying to profile my code with bios, since the profiler seems to
be heavely bugged.
So I tried to use

LOG_printf(&Debug, "time = %d", CLK_gethtime());
in various places in my code, but the problem is that CLK_gethtime
returns always the same value, so the diff (time elapsed) is always 0.
Should I set up anything special in order to do this?
How are you profiling your code?
TIA
Federica Legger




Did you enable clock in Profile menu?
--- "fedelegger <>" wrote --
>
> Hi,
> I'm trying to profile my code with bios, since the profiler seems to
> be heavely bugged.
> So I tried to use
>
> LOG_printf(&Debug, "time = %d", CLK_gethtime());
> in various places in my code, but the problem is that CLK_gethtime
> returns always the same value, so the diff (time elapsed) is always 0.
> Should I set up anything special in order to do this?
> How are you profiling your code?
> TIA
> Federica Legger >
>
> _____________________________________
> Note: If you do a simple "reply" with your email client, only the author
of this message will receive your answer. You need to do a "reply all" if
you want your answer to be distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to
>
> To Post: Send an email to
>
> To Leave: Send an email to
>
> Archives: http://www.yahoogroups.com/group/c6x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/


--- Shanghai Jiaotong University Alumni Email System http://mail.sjtu.edu ---