🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #640

Re: sleep

#640
From: Owen Green
Date: Sun, 23 Mar 2003 22:36
22 lines
1486 bytes
In article <3e7dc953@newsgroups.borland.com>, 
RaynorPao.nospam@nospam.pchome.com.tw says...
> Hi Gillmer:
> 
> Thanks for your reply.
> I just want to dely 500 milliseconds.
> Is there a simple way? or not?
> 

The API docs are your friend :) 

http://java.sun.com/j2se/1.4/docs/api/java/lang/Thread.html#sleep(long)

So, being static, the method Gillmer pointed out will do just that on 
the current thread: 

Thread.sleep(500); 

Which is pretty simple :) 

--
Owen 
Technical Details
Message-ID: <MPG.18e8476bf225504c98969a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!c03.atl99!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3e7dbfc6@newsgroups.borland.com> <3e7dc6b0@newsgroups.borland.com> <3e7dc953@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,4cf0990e1ae7305e
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-03-23 15:01:57 PST
From: Owen Green <o.t.green@begonefoulmachine.ntlworld.com>
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: sleep
Date: Sun, 23 Mar 2003 22:36:59 -0000
Message-ID: <MPG.18e8476bf225504c98969a@newsgroups.borland.com>
References: <3e7dbfc6@newsgroups.borland.com> <3e7dc6b0@newsgroups.borland.com> <3e7dc953@newsgroups.borland.com>
Organization: The Lean Green Machine
X-Newsreader: MicroPlanet Gravity v2.60
NNTP-Posting-Host: 62.253.133.169
X-Trace: newsgroups.borland.com 1048459144 62.253.133.169 (23 Mar 2003 14:39:04 -0800)
Lines: 22
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!c03.atl99!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail