Hi, 
        Any idea how to convert rt_get_time into micro seconds?
        At the moment I'm using a UPP (Universal Pulse Processor) to 
generate interrupts and I'm using rt_get_time to time my interrupt 
function.

code:
        begin= rt_get_time();
        blah... Blah...;
        end= rt_get_time();
        interval= (end- begin)*1000000/ RT_TICKS_PER_SEC;

the "interval" value returned is too high to be in microseconds (eg. 
1400 microseconds instead of 1000 which is expected). However, it 
returns very consistent values to lead me to believe that it is just a 
matter of scaling to get the right value.

Thank you.

--- [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/~rtlinux/

Reply via email to