Tcl_Sleep(3tcl)

Tcl_Sleep3tcl

Delay execution for a given number of milliseconds

Usage

#include <tcl.h>

Tcl_Sleep(ms)

    


    

Arguments

int ms (in)

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

18 releases since Debian 1.1 (Buzz); the text changed 10 times.

  1. 1.1–1.3
  2. 2.0
  3. 2.1
  4. 2.2–3.0
  5. 3.1–4.0
  6. 5.0
  7. 6.0
  8. 7
  9. 8–9
  10. 10
  11. 11–13

From tcl8.6-doc 8.6.16+dfsg-1 in Debian 13 (Trixie). Also shipped by tcl9.0-doc. Parsed by carta from the page's man source.