Home Cooker Classes Others Rice CookerGX
Classes  >  window  >  Sleep(int)
window class : Sleep(int) method

Description

This method suspends the execution of the program between the specified number of milliseconds.

Syntax

windowInstance.Sleep(int milliseconds)

Arguments

ClassNameDescription
intmillisecondsMilliseconds number.

Return value

None

Sample code

//anyWindow is a instance of window type.

anyWindow.Sleep(10);

Notes

It's a wrapper of the System.Threading.Thread.Sleep(Int32).

This method does not freeze the program unlike the original Sleep(Int32) function.

Links for reference

Copyright © Rice All rights reserved.