1 <!--==========================================================================
2 STARTS THE DESCRIPTION OF THE BLACK BOX -->
4 <!--=======================================================================-->
6 <!--========================================================================
7 THE BOX DOCUMENTATION -->
9 <author>laurent.guigues@creatis.insa-lyon.fr</author>
10 <description>Waits a certain number of milliseconds</description>
12 <!--=====================================================================-->
14 <!--========================================================================
15 #include directives to be put in the .h generated
16 There must be one tag per file to include
17 Here we include the standard header iostream.h -->
18 <include><PRE>ctime</PRE></include>
19 <!--=====================================================================-->
21 <!--========================================================================
22 INPUTS/OUTPUTS DECLARATION -->
23 <input name="In" type="int" description="Number of milliseconds to wait"/>
24 <!--=====================================================================-->
26 <!--========================================================================
27 THE PROCESSING METHOD BODY : -->
31 endwait = clock () + (bbGetInputIn() * CLOCKS_PER_SEC )/ 1000;
32 while (clock() < endwait) {}
35 <!--=====================================================================-->
44 <!--=====================================================================-->
46 <!--=======================================================================-->
47 <!-- END OF BLACK BOX DESCRIPTION -->
49 <!--=======================================================================-->