Showing posts with label pause sleep wait time PeopleCode. Show all posts
Showing posts with label pause sleep wait time PeopleCode. Show all posts

Pause/Sleep/Wait

Elegant way to pause or sleep processing for a while without using CPU time. In PeopleCode:

Local JavaObject &thread = GetJavaClass("java.lang.Thread");
&thread.sleep(2500); // this is in milliseconds