<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 09/09/2012 11:09 AM, Fered wrote:
<blockquote cite="mid:3519721.qpBLML8Wlb@ali-thinkpad-sl510"
type="cite">
<meta name="qrichtext" content="1">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;">Dear all;</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;">In periodic tasks, when we call
rtems_rate_monotonic_period( ) function, we determine period
duration in OS ticks.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;">But rtems_rate_monotonic_report_statistics( )
prints statistics in another time units.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;">How can I find the OS tick duration in micro
seconds and what's time unit of the statistics?</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; "> </p>
</blockquote>
<br>
Some of the handy methods are:<br>
<br>
rtems_configuration_get_microseconds_per_tick()<br>
rtems_configuration_get_milliseconds_per_tick()<br>
rtems_configuration_get_nanoseconds_per_tick()<br>
rtems_clock_get_ticks_per_second()<br>
<br>
If these aren't in the user's manual, then they should be<br>
added. Feel free to submit a patch if there is documentation<br>
missing.<br>
<br>
The new timespec wrappers for the Score timespec helpers <br>
are similar but for a different time type and were just added<br>
by our ESA SOCIS student.<br>
<blockquote cite="mid:3519721.qpBLML8Wlb@ali-thinkpad-sl510"
type="cite">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;">Thanks</p>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Joel Sherrill, Ph.D. Director of Research& Development
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
</pre>
</body>
</html>