Sleep(3)

Sleep3

Delay execution for a given number of milliseconds

Usage

#include <tcl.h>

Tcl_Sleep(ms)

Arguments

Number of milliseconds to sleep.

Overview

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.

Keywords

sleep, time, wait

Releases

163 releases since Mac OS X 10.0; the text changed 4 times.

  1. 10.0–10.2.2
  2. 10.2.3–10.2.8
  3. 10.3–10.3.9
  4. 10.4–10.5.8
  5. 10.6–26.5

From tcl 152 in macOS 26.5. Parsed by carta from the page's man source.