+<!--==========================================================================
+ STARTS THE DESCRIPTION OF THE BLACK BOX -->
+<blackbox name="Wait">
+<!--=======================================================================-->
+
+ <!--========================================================================
+ THE BOX DOCUMENTATION -->
+
+ <author>laurent.guigues@creatis.insa-lyon.fr</author>
+ <description>Waits a certain number of milliseconds</description>
+ <category></category>
+ <!--=====================================================================-->
+
+ <!--========================================================================
+ #include directives to be put in the .h generated
+ There must be one tag per file to include
+ Here we include the standard header iostream.h -->
+ <include><PRE>ctime</PRE></include>
+ <!--=====================================================================-->
+
+ <!--========================================================================
+ INPUTS/OUTPUTS DECLARATION -->
+ <input name="In" type="int" description="Number of milliseconds to wait"/>
+ <!--=====================================================================-->
+
+ <!--========================================================================
+ THE PROCESSING METHOD BODY : -->
+ <process>
+ <PRE>
+ clock_t endwait;
+ endwait = clock () + (bbGetInputIn() * CLOCKS_PER_SEC )/ 1000;
+ while (clock() < endwait) {}
+ </PRE>
+ </process>
+ <!--=====================================================================-->
+
+ <!--========================================================================
+ CONSTRUCTORS / DESTRUCTORS (OPTIONAL)
+ THE CONSTRUCTION METHOD BODY : -->
+ <constructor>
+ <PRE>
+ bbSetInputIn(1000);
+ </PRE>
+ </constructor>
+
+ <!-- THE COPY-CONSTRUCTION METHOD BODY :
+ Here does nothing
+ But this is where you should allocate the output pointers if any
+ and copy the pointed values (to avoid bug caused by multiple references)-->
+ <copyconstructor>
+ <PRE>
+ </PRE>
+ </copyconstructor>
+
+ <!-- THE DESTRUCTION METHOD BODY :
+ Here does nothing
+ but this is where you should desallocate the output pointers if any -->
+ <destructor>
+ <PRE>
+ </PRE>
+ </destructor>
+ <!--=====================================================================-->
+
+<!--=======================================================================-->
+<!-- END OF BLACK BOX DESCRIPTION -->
+</blackbox>
+<!--=======================================================================-->