Knowing real uptime

Discussion in 'macOS' started by propropro, Jun 17, 2005.

  1. propropro macrumors regular

    Joined:
    Nov 29, 2004
    Location:
    Spain
    #1
    Just a curious question: Is there any way of knowing the real uptime of your machine, that is, without counting the time while the computer is sleeping?
     
  2. DXoverDY macrumors 6502a

    Joined:
    Apr 19, 2005
    #2
    Not with the stock software. It would be possible with third party software that simply counted up while it was on, and then stopped when the machine was sleeping and resumed when the machine was turned back on. I'm sure someone could recommend something, but it would likely be third party software you'd need, and it wouldn't be very failsafe either.
     
  3. dsharits macrumors 68000

    dsharits

    Joined:
    Jun 19, 2004
    Location:
    The People's Republic of America
    #3
    The time that you computer is sleeping is also uptime. Every app that I know of that displays uptime counts the time that it is asleep. Even when you type 'uptime' in the terminal, it gives you total uptime.
     
  4. propropro thread starter macrumors regular

    Joined:
    Nov 29, 2004
    Location:
    Spain
    #4
    yeah, I know, but while the computer is "sleeping" it's not working at all (it's not "useful" time) and that time doesn`t interest me.
     
  5. Makosuke macrumors 603

    Joined:
    Aug 15, 2001
    Location:
    The Cool Part of CA, USA
    #5
    I've wondered this myself, but didn't find anything obvious to do it. It'd definitely need to be something 3rd party that kept a sort of "watchdog" timer running that didn't incriment while sleeping.

    Actually, the logs do record sleep and wake times, so if you were clever you could write an app to sum the sleep time from the log files and subtract it from the reported uptime. I smell grep project for somebody with more time than me.
     
  6. propropro thread starter macrumors regular

    Joined:
    Nov 29, 2004
    Location:
    Spain
    #6
    That would be a interesting exercise to improve my Unix command line skills, maybe when I've got more free time...
     
  7. toothpaste macrumors 6502

    Joined:
    May 8, 2005
    #7
    open terminal

    uptime

    unix command that is for uptime of your machine. but since you want something more than this,

    last

    it will show you your loggin time up to your current time, you will see how long your machine has been up as in when the last user logged in
     

Share This Page