1Tcl_Sleep(3) Tcl Library Procedures Tcl_Sleep(3)
2
3
4
5______________________________________________________________________________
6
8 Tcl_Sleep - delay execution for a given number of milliseconds
9
11 #include <tcl.h>
12
13 Tcl_Sleep(ms)
14
16 int ms (in) Number of milliseconds to
17 sleep.
18_________________________________________________________________
19
20
22 This procedure delays the calling process by the number of milliseconds
23 given by the ms parameter and returns after that time has elapsed. It
24 is typically used for things like flashing a button, where the delay is
25 short and the application needn't do anything while it waits. For
26 longer delays where the application needs to respond to other events
27 during the delay, the procedure Tcl_CreateTimerHandler should be used
28 instead of Tcl_Sleep.
29
30
32 sleep, time, wait
33
34
35
36Tcl 7.5 Tcl_Sleep(3)