Debian Codegraph @

doc/Sleep.3

raw
1 '\"
2 '\" Copyright (c) 1990 The Regents of the University of California.
3 '\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
4 '\"
5 '\" See the file "license.terms" for information on usage and redistribution
6 '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
7 '\"
8 .TH Tcl_Sleep 3 7.5 Tcl "Tcl Library Procedures"
9 .so man.macros
10 .BS
11 .SH NAME
12 Tcl_Sleep \- delay execution for a given number of milliseconds
13 .SH SYNOPSIS
14 .nf
15 \fB#include <tcl.h>\fR
16 .sp
17 \fBTcl_Sleep\fR(\fIms\fR)
18 .SH ARGUMENTS
19 .AS int ms
20 .AP int ms in
21 Number of milliseconds to sleep.
22 .BE
23 .SH DESCRIPTION
24 .PP
25 This procedure delays the calling process by the number of
26 milliseconds given by the \fIms\fR parameter and returns
27 after that time has elapsed. It is typically used for things
28 like flashing a button, where the delay is short and the
29 application need not do anything while it waits. For longer
30 delays where the application needs to respond to other events
31 during the delay, the procedure \fBTcl_CreateTimerHandler\fR
32 should be used instead of \fBTcl_Sleep\fR.
33 .SH KEYWORDS
34 sleep, time, wait