Article View: borland.public.jbuilder.java.api
Article #1284Re: Getting the system up time
From: Joi Ellis [TeamB]
Date: Fri, 22 Mar 2002 14:32
Date: Fri, 22 Mar 2002 14:32
18 lines
1601 bytes
1601 bytes
Gillmer J. Derge [TeamB] <spam@gillmerderge.com> wrote: > "Joi Ellis [TeamB]" <joi@aravox.com> wrote in message > news:3c99fdc1_2@dnews... >> I don't know of a pure-java way to get the system uptime. > new Random().nextGaussian() * 2 * 60 * 60 > will be pretty accurate for most Windows systems I've used (measured in > units of seconds). :-) C|N>K !! -- Joi Ellis (TeamB) http://www.teamb.com/ No direct email, please. For best results, post on news server newsgroups.borland.com! Newsgroup Guidelines: http://www.borland.com/newsgroups/guide.html Only posts which violate the rules in guide.html are subject to cancelation.
Technical Details
Message-ID:
<3c9b408f_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!newspump.sol.net!newsengine.sol.net!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!not-for-mailReferences:
<3c99c458_2@dnews> <3c99fdc1_2@dnews> <3c9a0b25$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,f7185cfe9b04bfa
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-03-22 06:35:49 PST
Sender: Joi Ellis <joi@artoo.gyles19.visi.com>
Message-ID: <3c9b408f_2@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: Getting the system up time
Newsgroups: borland.public.jbuilder.java.api
References: <3c99c458_2@dnews> <3c99fdc1_2@dnews> <3c9a0b25$1_2@dnews>
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.2.19-6.2.7 (i686))
NNTP-Posting-Host: 209.98.6.107
Date: 22 Mar 2002 06:32:47 -0800
X-Trace: dnews 1016807567 209.98.6.107 (22 Mar 2002 06:32:47 -0800)
Lines: 18
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!newspump.sol.net!newsengine.sol.net!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!not-for-mail