| 1 |
# Copyright (c) 1990 The Regents of the University of California. |
| 2 |
# Copyright (c) 1994 Sun Microsystems, Inc. |
| 3 |
# See the file "license.terms" for information on usage and redistribution |
| 4 |
# of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
| 5 |
# |
| 6 |
# @(#) Sleep.3 1.6 95/05/06 15:30:32 |
| 7 |
# |
| 8 |
|
| 9 |
=head1 NAME |
| 10 |
|
| 11 |
Tk_Sleep - delay execution for a given number of milliseconds |
| 12 |
|
| 13 |
=for category C Programming |
| 14 |
|
| 15 |
=head1 SYNOPSIS |
| 16 |
|
| 17 |
B<#include E<lt>tk.hE<gt>> |
| 18 |
|
| 19 |
B<Tk_Sleep>(I<ms>) |
| 20 |
|
| 21 |
=head1 ARGUMENTS |
| 22 |
|
| 23 |
=over 4 |
| 24 |
|
| 25 |
=item int ms (in) |
| 26 |
|
| 27 |
Number of milliseconds to sleep. |
| 28 |
|
| 29 |
=back |
| 30 |
|
| 31 |
=head1 DESCRIPTION |
| 32 |
|
| 33 |
This procedure delays the calling process by the number of |
| 34 |
milliseconds given by the I<ms> parameter, and returns |
| 35 |
after that time has elapsed. It is typically used for things |
| 36 |
like flashing a button, where the delay is short and the |
| 37 |
application needn't do anything while it waits. For longer |
| 38 |
delays where the application needs to respond to other events |
| 39 |
during the delay, the procedure B<Tk_CreateTimerHandler> |
| 40 |
should be used instead of B<Tk_Sleep>. |
| 41 |
|
| 42 |
=head1 KEYWORDS |
| 43 |
|
| 44 |
sleep, time, wait |