Sleep(3tk)

Sleep3tk

Delay execution for a given number of milliseconds

Usage

#include <tk.h>

Tk_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 needn't do anything while it waits. For longer delays where the application needs to respond to other events during the delay, the procedure Tk_CreateTimerHandler should be used instead of Tk_Sleep.

Keywords

sleep, time, wait

Releases

Unchanged in 3 releases since Debian 1.1 (Buzz).

  1. 1.1–1.3

From tk40-dev 4.0p3-5 in Debian 1.3 (Bo). Parsed by carta from the page's man source.