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't you have this set at the patch level? I tried this with the QT recordings but it didn'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> <<a href="mailto:grh@mur.at">grh@mur.at</a>> 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'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>< // Copyright (c) G�nther Geiger.<br>< // Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::f�r::uml�ute<br>---<br>> // Copyright (c) Günther Geiger.<br>> // Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::für::umläute
<br>100d99<br>< double GemMan::s_deltime = 50.;<br>111a111<br>> static double s_deltime = 50.;<br>1503,1511d1502<br>< // get Framerate<br>< //<br>< /////////////////////////////////////////////////////////<br>
< float GemMan :: getFramerate()<br>< {<br>< return (s_deltime != 0.0) ? (1000. / s_deltime) : 0.0;<br>< }<br><<br>< /////////////////////////////////////////////////////////<br>1645c1636<br>< post("frame rate: %f", getFramerate() );
<br>---<br>> post("frame rate: %f", (0.0 != s_deltime) ? 1000. / s_deltime : 0.0);<br><br>9,10c9,10<br>< Copyright (c) G�nther Geiger. <a href="mailto:geiger@epy.co.at">geiger@epy.co.at</a><br>< 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>> Copyright (c) Günther Geiger. <a href="mailto:geiger@epy.co.at">geiger@epy.co.at</a><br>> 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>< // Get the frame rate<br>< static float getFramerate();<br><<br>< //////////<br>244,245d239<br><
<br>< static double s_deltime;<br><br></blockquote></div><br>