niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » powerpc
uptime
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
everythingsfree@hotmail.c
*nix forums beginner


Joined: 14 Jun 2006
Posts: 1

PostPosted: Wed Jun 14, 2006 6:01 pm    Post subject: uptime Reply with quote

Hi all,

I've had a look through the posts in this group (and others) but so far
have not found anything so thought I would post a question...

On the PPC 405 is there a quick way to obtain the uptime down to a
fairly good resolution?

I see that I could read /proc/uptime but given the number of times I
need to read this and convert it into the component parts I need it
appears to hit the CPU quite hard and so isn't good enough - I assume
it's because it's reading the file all the time and the maths involved
in the conversion.

I also found that I could use the get_tbu and get_tbl functions but
again converting that into something I can use involves so "heavy"
maths and so hits the CPU quite hard.

Are there any other ways to get the uptime in seconds and milliseconds?
I'm basically looking for a something that returns the same resolution
as the gettimeofday function but is an uptime.

(If this is the wrong group for the question please let me know and
point me in the right direction.)

Thanks,
Mike
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Tue Dec 02, 2008 1:03 pm | All times are GMT
navigation Forum index » *nix » Linux » powerpc
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Question about the 497.1-day-uptime bug. AEF VMS 3 Wed Jul 19, 2006 5:58 pm
No new posts monitoring network uptime Matt Price Debian 1 Fri Jun 09, 2006 5:20 pm
No new posts getting uptime from c pdx AIX 1 Mon May 08, 2006 2:59 pm
No new posts Heads UP BRUDEN Announces the OpenVMS Bootcamp Uptime Sch... susan_skonetski@hotmail.c VMS 15 Sun Apr 23, 2006 8:51 pm
No new posts Oracle uptime monitoring robgtaylor@gmail.com Server 4 Thu Mar 16, 2006 5:50 pm

Online Advertising | Dancemania Download | Secured Loans | Synchronization fast and easy | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2337s ][ Queries: 16 (0.1501s) ][ GZIP on - Debug on ]