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 <!--=====================================================================-->
37 <!--========================================================================
38 CONSTRUCTORS / DESTRUCTORS (OPTIONAL)
39 THE CONSTRUCTION METHOD BODY : -->
46 <!-- THE COPY-CONSTRUCTION METHOD BODY :
48 But this is where you should allocate the output pointers if any
49 and copy the pointed values (to avoid bug caused by multiple references)-->
55 <!-- THE DESTRUCTION METHOD BODY :
57 but this is where you should desallocate the output pointers if any -->
62 <!--=====================================================================-->
64 <!--=======================================================================-->
65 <!-- END OF BLACK BOX DESCRIPTION -->
67 <!--=======================================================================-->