How do I get the current tick count in a RT thread?  By tick count I mean
anything that will let me tell time.  I need to do this in order to figure
out how long a certain piece of RT code takes to run.

Here's what I want to do in psudo-c:

start_time = rtl_some_time_func();
while (blah) {
 /* .. suspicious code to be timed */
}
total_exec_time = rtl_some_time_func() = start_time;
/*
.
.
.
*/
rtl_printf("Your suspicious code took %d units of time... (we still have
no idea what 1 time unit represents in reality! :) \n", total_exec_time);



I could read the rtl documentation, but I figured it might be easier to
ask you fine people.

Thanks!

-Calin


-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to