🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting the system up time

#1280
From: John McGrath TeamB
Date: Thu, 21 Mar 2002 17:00
17 lines
1457 bytes
On Thu, 21 Mar 2002 13:29:09 +0200, Hanan Hermon wrote:

> How can I get the system up time ?

There is no standard Java API for getting this, so you will have to use 
some sort of native mechanism to get it.  You could run a program that 
prints out this value using Runtime.exec(), or you could write the 
method in another language (like C++) and use JNI to call it.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.1703d4456117c6f798b492@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-x2.support.nl!newsfeed.icl.net!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3c99c458_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-21 09:11:18 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: Getting the system up time
Date: Thu, 21 Mar 2002 12:00:29 -0500
Message-ID: <MPG.1703d4456117c6f798b492@newsgroups.borland.com>
References: <3c99c458_2@dnews>
X-Newsreader: MicroPlanet Gravity v2.60
NNTP-Posting-Host: 209.92.40.60
X-Trace: dnews 1016730029 209.92.40.60 (21 Mar 2002 09:00:29 -0800)
Lines: 17
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-x2.support.nl!newsfeed.icl.net!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews