Artifact 9c5fbde42a675f2c023704280ca4f943437d13514bdf6552646cb8b104d3c6b7:
- File doc/markdown/Sleep.md — part of check-in [d08c297ffd] at 2026-08-16 12:47:50 on branch tip-700 — added links to Tcl C API section 3 pages from a new static dictionary containing all C function names and the mapping to the manual pages where they are described (user: Torsten, size: 1062) [annotate] [blame] [check-ins using]
CommandName: Tcl_Sleep ManualSection: 3 Version: 7.5 TclPart: Tcl TclDescription: Tcl Library Procedures Keywords:
- sleep
- time
- wait Copyright:
- Copyright (c) 1990 The Regents of the University of California.
- Copyright (c) 1994-1996 Sun Microsystems, Inc. ---
Name
Tcl_Sleep - delay execution for a given number of milliseconds
Synopsis
::: {.synopsis} ::: #include <tcl.h> [Tcl_Sleep]{.ccmd}[ms]{.cargs} :::
Arguments
::: {.arguments} :::
[ms]{.carg .in type="int"} : Number of milliseconds to sleep.
:::
Description
This procedure delays the calling process by the number of milliseconds given by the ms 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 need not do anything while it waits. For longer delays where the application needs to respond to other events during the delay, the procedure Tcl_CreateTimerHandler should be used instead of Tcl_Sleep.