How can I tell how long my Mac has been on?

I know there are a couple of widgets that do this, but if I don't have those, how can I tell how long it's been since I last booted my Mac? Seems like, at a minimum, there would be a Unix command that would tell me this.
Thanks!

open terminal:
uptime <enter>
my uptime:
21:29 up 2 days, 3:38, 2 users, load averages: 0.09 0.16 0.08
(clock, uptime, users, load)

Similar Messages

  • How can I tell how long a request has been sitting on an execute queue?

    Is it possible to determine (in WL 8.1 and/or 10.3) how long an HTTP request has been sitting on the execute queue before being assigned to a servlet?
    Under heavy load, I'm finding that the caller times out by the time the servlet tries to write the response because the request has been waiting on the execute queue for too long. To prevent doing all the work to process the request, I want to be able to see how long the request has been waiting to determine whether it's worth processing the request.
    Currently I use the getExecuteThreadTotalCount() method in ExecuteQueueRuntimeMBean and assume that if the count is high, the request has probably been waiting for a while, but getting the actual time on the queue would be much better.
    Thanks.

    Further investigation and a bunch of speed tests later, I'm even more puzzled. Between 7 pm and 9pm this evening, download speed has been consistently at 112kb, except for the 1 in 10 occasions where it hits 1.5mb, for 30 or 40 seconds, before dropping back to 112kb.
    Does anyone have any ideas what is going on?
    thanks in advance
    Ben

  • Is there a way to find out how long my child has been playing with my ipad

    Is there a way to find out how long my child has been playing with my ipad???  He has been getting up before me in the morning and in the evening he is super tired and I'm wondering how early he has been getting up????

    No way to see exactly how long the iPad has been used but you may want to consider using parental controls.
    iOS: Understanding Restrictions (parental controls)

  • Working out how long a program has been run for

    i hav a server and on the stats report it makes i wanna show how long its been running for since it started
    i have a start date and time
    and a ill grab the current date and time when i run this method
    but what code would compair them and work out how long the server has actually been running for
    can i do it using these 2 days or do i need another counter thread just counting up in seconds then min then hours then days n so on ?
    Message was edited by:
    russdx

         private final static int SECOND = 1000;
         private final static int MINUTE = SECOND * 60;
         private final static int HOUR = MINUTE * 60;
         private final static int DAY = HOUR * 24;
         public static void main (String[] args)
              long time = System.currentTimeMillis();
              long days = time / DAY;
              time -= days * DAY;
              long hours = time / HOUR;
              time -= hours * HOUR;
              long minutes = time / MINUTE;
              time -= minutes * MINUTE;
              long seconds = time / SECOND;
              System.out.println (days + " days, " + hours + " hours, " + minutes + " minutes, " + seconds + " seconds");
         }Ted.

  • Timing how long a frame has been active

    I am trying to time how long a frame as been the active
    frame. Once the frame is displayed, if the user doesnt press a
    button to move to another frame after 6 seconds, the movie should
    jump back to the previous frame it was at. I think the setInterval
    function would be correct to use here to time the 6 seconds, but im
    not sure how to clear the interval after. Here is my logic, (i know
    this isnt correctly coded..)
    If a button was pressed before the 6 seconds has elapsed,
    then it would not jump to frame5, i think.. but im not really sure
    if this will work for what i am tryin to do, and if there is a
    simpler way. thanks for any advice

    onEnterFrame does NOT execute once when the frame is entered
    (despite its name). it executes repeatedly (ie, it starts a loop)
    starting when the frame that contains its code is entered and
    continues until the timeline to which it's attached no longer
    exists or a delete onEnterFrame is executed.
    in addition, you should always precede your setInterval()
    statement with a clearInterval(). especially, when your setInterval
    is attached to a frame. it's almost guaranteed that you'll have a
    mess on your hands if you use the code given by madmac, unless you
    add that clearInterval().

  • How can I tell if my macbook pro has been restored to factory settings?

    I just bought I brand new macbook pro (15,4 inch) from an official apple store... but I'm thinking that it may be used (it was a bit dirty when I opened it, but it has no scratches).
    I tried with coconut battery, but it went ok, the battery is new. However they might have changed it.
    Is there a way to know if the mac was restored to factory settings?
    ... if not, is there any other way to know if is a used laptop?
    Thanks,

    cycle count says 1... wich correspond to the initial battery discharge I just did. That's why I think they may have changed the battery.
    Serial number is C02FHFG0DF8V... how can you tell if this correspond to a refurbished unit?
    It has all the "official" envelops of a brand new mac... the thing is that I found small dust specks all over the interior of the box and in the accesories (not on the notebook itself).
    According to coconut "Age of your Mac" is 11 weeks.
    That's why I thought the only way I could knew for sure if they used it before (maybe for showcasing at the store) was finding out if it was restored to factory settings. (Also I bought it in an official apple store).

  • How can i tell if my iphone 4 has been hacked into?

    Here is the situation.....a friend of mine is in a bad marriage. She found out her husband bugged her laptop and her phone and is finding out all of her conversations. The other day, we were all at a buffet restaurant and he was sitting at the table with us, without thinking anything of it, I left my purse with my phone at the table while all but him went up to the bar. Later on that night, I was in the car with another friend and we were talking in detail about our friends situation. The next day my friend whom I was talking to in the car, checked her answering machine, and our conversation was on her machine. I checked my call log AND detailed billing from AT&T  thinking I may have butt dialed her house, but there is no record of me calling her house. The same with her, she as no record of calling her house and her home phone does not have caller ID. This guy is very tech savy and is the manager of 4 AT&T stores. Is it possible for him to have hacked into my phone and put some sort of bug in it? If this is possible, is it also possible for my phone to be able to record our conversation without a call being placed? If it is possible, how can I tell if my phone has been hacked?
    Thanks

    It would be extremely difficult for someone to be able to grab your iPhone out of your purse and hack into it without having a laptop computer with him with which to jailbreak the iPhone and time to work on it. I can't say it would be impossible, though. I'd suggest as a precaution you perform a Restore on your iPhone; if it restores successfully that would clear any jailbreak and remove any hack.
    http://support.apple.com/kb/ht1212
    Regards.

  • How can I tell if a Graphics object has been disposed

    Any ideas?
    Thanks

    My goal is to find out if a graphics object has been disposed or not...
    ...but I'll play along. the application offers the user some nice graphics to amuse them, I use the Graphics object. In my endeavours, something isn't getting displayed where I expect it to, and I suspect that somewhere I'm accidentally disposing the graphics object. So, like checking for nulls, I want to debug the application and make sure the graphics context is as I expect.
    A bit of a side note, SWT will throw an exception if you try and use a "graphics" type object that has been disposed and has a method called, unsurprisingly enough, isDisposed(). Can you guess what it returns?

  • Recording info about how long an application has been open?

    Hi. I would like to set up some kind of log that tells me when I've opened a particular application (Final Cut Pro) and how long (how many minutes/hours) the application has been open for that particular session or that particular day.
    Ideally, the log would have the new information appended to the end of it each day; it wouldn't delete/refresh/overwrite itself -- so at the end of, say, six months, I could look at the log and see, Oh, I used Final Cut on Tuesday, April whatever, for 10 hours, and then on Friday, May whatever, for another 12 -- without having to know about any other activity with any other application on my system.
    Is there an easy way to do this with OS X 10.4.5? Can Automator do this for me? (Didn't notice an FCP icon in the library of applications Automator can act upon.) Do I need to use AppleScript?
    Thanks!
    PowerMac G5   Mac OS X (10.4.5)  

    Hi, R.G.
    You might also want to look into some of these applications.
    When looking for new applications, I recommend searching MacUpdate or Version Tracker. The user-submitted reviews accompanying the listings are helpful in sorting the wheat from the chaff.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • New update of podcast app, there is no way to see how long your podcast has been on go?

    When listening to a podcast and you want to see how long you have left, there is now no longer an option to see this?
    Your also unable to drag/skip to a part of the podcast easily

    @Christine – try the following ExtendScript (JavaScript):
    if(app.selection.length === 0
        || !app.selection[0].constructor.name === "Cell"
        || !app.selection[0].constructor.name === "Table"){
        exit(0);
    var sel = app.selection[0];
    if(sel.constructor.name === "Cell"){
        var tableRowLength = sel.parent.rows.everyItem().getElements().length;
    if(sel.constructor.name === "Table"){
        alert("All "+sel.rows.everyItem().getElements().length+" rows selected in current table." );
        exit(0);
    var numberOfRowsSelected = sel.rows.length;
    var indexOfSelectedRows = sel.rows.everyItem().index;
    var startRowSel = indexOfSelectedRows[0]+1;
    var endRowSel = indexOfSelectedRows.length+indexOfSelectedRows[0];
    alert(numberOfRowsSelected +" row(s) selected.\r"+startRowSel+" to "+endRowSel+" out of "+tableRowLength+" of current table.");
    You need not select whole rows, just one or a couple of cells.
    Then run the script.
    An alert message is telling you how many rows belong to the cell range you have selected and:
    which rows of the table are selected…
    A typical message would be:
    6 row(s) selected.
    3 to 8 out of 20 of current table.
    The script does some basic checks of the selection.
    If no cell or table is selected, it will just do nothing…
    Uwe
    Message was edited by: Laubender | Some language cosmetics in the alert message

  • Can you tell if your stolen ipad has been updated

    I don't understand why apple cannot check my serial number to my lost or stolen ipad 2 and tell me if anyone has re-regestered or updated it since my loss of it.
    Aplle can find me any where on the globe but I can't get them to see if my ipad was stolen or I really just lost it. I had find my ipad installed but it hasn't turned on. unless the person whoi stole it cleared it out before I noticed it missing. If it has been updated since its lost than someone has it, if not it's somewhere and I will find it. I feel like I am not the only one with this problem. with all the money we spend on apple products a request like this should be done with out hesitation..
    thanks to anyone listening or who ever feels my pain,
    wjforbes

    no one asked apple to be in law enforcement. they don't seem to have a problem sending push notifications and using my location for thier benefit. i'm only asking for a little help to find my ipad that i paid $5600 for.  any device these days can be located if lost or stolen. these companies choose not to use thier abilty to locate these devices because they would rather you go out and buy another device. please don't take me wrong, i do not hold apple responable for my ipad. after spending hundreds of dollars on ipads iphones and apps i only asked for a little help. i am sure that i am not the only person who is frustrated by this. i am sure if law enforment came to them(apple) and told them to locate me on my ipad or iphone they would have no trouble finding me.

  • How can i find out if my mac has been accessed

    I suspect someone may secretly have tried to hack my mac, used it, and shut it back down - any way to tell when it was last used?

    In Applicaitons > Utilities you will find System Profiler. Launch it (or you can avoid getting to the Utilties folder by holding the Option/alt key then clicking on your Apple menu.)
    In the "Contents" pane on the left edge of the window, expand the "Software" section and click on "Logs" to get a screen similar to this:
    Highlight "system.log" as shown and, with a lot of scrolling, you can see when the computer was opened over the last couple of days. The log gets overwritten eventually to save room so, if you suspect the intrusion was a few weeks ago, the entry is probably not there.

  • How can I tell if my iPhone 3GS has been hacked????

    My phone is not jailbreak and I dont use iCloud.
    1.  I recently upgraded my Chase app. When I login in today, it said there's another user on this phone have change notification. It was a weird message pop up. And it told me if I want to overwrite the notification setting. I just delete the app.
    2. When I watch my tv show video on this website, there's always a pop up telling me to download Jelly Splash. And sometime it stop my video and go directly to the app center.
    3. I have unlimited data plan. Usually, when I reach my limit, my Internet slow down. It was slow for a well and after that my internet was fast again.  Weird. At first i was happy and now im worried. Can someone hacked into my phone and use a faster Internet. I did use wifi once and it didn't have a lock next to the username. 
    The stuff I've mention above happened all this month. Please help. And what should I do next. Thank you so much. 

    1) The notification might be due to the upgrade. Try reinstalling the app and see if that helps.
    2) The pop ups from watching tv shows on websites are usually adverts. And if you tap them they will redirect you to the app in the app store.
    3) I have not heard of a case where someone hacked into another person's iPhone.
    You mention you have an unlimited data plan.. So what is the limit you're hitting when you say you've reached your limit?

  • How can I tell if an RSS Feed has been updated? In Safari I can see the total number of feed updates in the menu bar. Can't figure out how to do that in Firefox.

    See question.

    You will find that the number of audiobook titles available without DRM is much smaller than the number of titles available with it. eMusic probably has the largest collection of MP3 format audiobooks, which are not wrapped in DRM, but their catalog is a pale shadow of Audible's collection.
    The source of your ire is the publishers. They are the ones who insist on DRM, rather than Apple or Audible. (Though there are also policies at those vendors, which make it difficult or impossible for authors who choose to go without DRM (such as Cory Doctorow) to offer their titles without DRM. I suspect that it’s the fault of the publication system, but who knows for sure.)
    Personally, I don't care about the DRM. Audible titles play just fine on my iPhone, and that's the only place I play them, so I never notice it. Someday that might change, and then maybe I'll be angry. But that seems low probability.

  • How can I tell if my iPad 5 has A2DP?

    How can I tell if my iPad 5 has A2DP?

    http://support.apple.com/kb/HT3647
    There is no "iPad 5" as an official model designation. Did you mean an iPhone 5 as you list in your profile?
    Regards.

Maybe you are looking for