Home Notices Documents Classes Download Others Rice
Classes  >  sleep  >  Wait(int,int)
sleep class : Wait(int,int) method

Description

Waits during the specified time without freeze.

Syntax

sleepInstance.Wait(int span, int times)

Arguments

ClassNameDescription
intspanTime span.
inttimesNumber of times.

Return value

None.

Sample code

1:

sleep sp = new sleep();

2:

sp.Wait(1, 100); // Waits 100 milliseconds (1 milliseconds, 100 times).

Notes

Span * Times is the wait time(millisecond).

The following steps will be repeated the specified times (the Times argument).

Step1 : Freezes the specified span (the Span argument).

Step2 : Processes the events after the freeze.


This method is added in Ver 1.0.0.2.

The waiting time is not accurate. Please do not trust.

Links for reference

None.

Copyright © Rice All rights reserved.