Now I get what you want to do.  You just want the framerate the gemwin is set to and not the actual real-world times.  The framerate output from the gemwin object and the Quicktime recording objects use real-time timers since Pd's logical time is not useful for profiling or dealing with other APIs.  
<br><br>Since you just want a single time value can&#39;t you have this set at the patch level?&nbsp; I tried this with the QT recordings but it didn&#39;t work well at all because the actual time between frames can vary quite a bit.
<br><br><div><span class="gmail_quote">On 8/18/07, <b class="gmail_sendername">Georg Holzmann</b> &lt;<a href="mailto:grh@mur.at">grh@mur.at</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hallo!<br><br>I implemented a static getFramerate Method in GemMan now, so it&#39;s<br>possible to query the framerate.<br><br>Can someone commit this into CVS ?<br>(diffs attached)<br><br>Thanks,<br>LG<br>Georg<br><br>10,11c10,11
<br>&lt; //&nbsp;&nbsp;&nbsp;&nbsp;Copyright (c) G�nther Geiger.<br>&lt; //&nbsp;&nbsp;&nbsp;&nbsp;Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::f�r::uml�ute<br>---<br>&gt; //&nbsp;&nbsp;&nbsp;&nbsp;Copyright (c) Günther Geiger.<br>&gt; //&nbsp;&nbsp;&nbsp;&nbsp;Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::für::umläute
<br>100d99<br>&lt; double GemMan::s_deltime = 50.;<br>111a111<br>&gt; static double s_deltime = 50.;<br>1503,1511d1502<br>&lt; // get Framerate<br>&lt; //<br>&lt; /////////////////////////////////////////////////////////<br>
&lt; float GemMan :: getFramerate()<br>&lt; {<br>&lt;&nbsp;&nbsp; return (s_deltime != 0.0) ? (1000. / s_deltime) : 0.0;<br>&lt; }<br>&lt;<br>&lt; /////////////////////////////////////////////////////////<br>1645c1636<br>&lt;&nbsp;&nbsp; post(&quot;frame rate: %f&quot;, getFramerate() );
<br>---<br>&gt;&nbsp;&nbsp; post(&quot;frame rate: %f&quot;, (0.0 != s_deltime) ? 1000. / s_deltime : 0.0);<br><br>9,10c9,10<br>&lt;&nbsp;&nbsp;&nbsp;&nbsp; Copyright (c) G�nther Geiger. <a href="mailto:geiger@epy.co.at">geiger@epy.co.at</a><br>&lt;&nbsp;&nbsp;&nbsp;&nbsp; Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::f�r::uml�ute. IEM. 
<a href="mailto:zmoelnig@iem.kug.ac.at">zmoelnig@iem.kug.ac.at</a><br>---<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Copyright (c) Günther Geiger. <a href="mailto:geiger@epy.co.at">geiger@epy.co.at</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::für::umläute. IEM. 
<a href="mailto:zmoelnig@iem.kug.ac.at">zmoelnig@iem.kug.ac.at</a><br>127,130d126<br>&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Get the frame rate<br>&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static float&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getFramerate();<br>&lt;<br>&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //////////<br>244,245d239<br>&lt;
<br>&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static double s_deltime;<br><br></blockquote></div><br>