Sleep.3
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:1k
- '"
- '" Copyright (c) 1990 The Regents of the University of California.
- '" Copyright (c) 1994-1996 Sun Microsystems, Inc.
- '"
- '" See the file "license.terms" for information on usage and redistribution
- '" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
- '"
- '" RCS: @(#) $Id: Sleep.3,v 1.2 1998/09/14 18:39:50 stanton Exp $
- '"
- .so man.macros
- .TH Tcl_Sleep 3 7.5 Tcl "Tcl Library Procedures"
- .BS
- .SH NAME
- Tcl_Sleep - delay execution for a given number of milliseconds
- .SH SYNOPSIS
- .nf
- fB#include <tcl.h>fR
- .sp
- fBTcl_SleepfR(fImsfR)
- .SH ARGUMENTS
- .AP int ms in
- Number of milliseconds to sleep.
- .BE
- .SH DESCRIPTION
- .PP
- This procedure delays the calling process by the number of
- milliseconds given by the fImsfR parameter and returns
- after that time has elapsed. It is typically used for things
- like flashing a button, where the delay is short and the
- application needn't do anything while it waits. For longer
- delays where the application needs to respond to other events
- during the delay, the procedure fBTcl_CreateTimerHandlerfR
- should be used instead of fBTcl_SleepfR.
- .SH KEYWORDS
- sleep, time, wait