Timer in XCode?

Discussion in 'Mac Programming' started by detz, Aug 25, 2010.

  1. detz macrumors 65816

    Joined:
    Jun 29, 2007
    #1
    How hard would it be to attach a timer to xcode to time how long you've spent on a project? More than once I wish I had a total hours spent on a project. :eek:
     
  2. Sydde macrumors 68020

    Sydde

    Joined:
    Aug 17, 2009
    #2
    If I read the docs for NSWorkspace correctly, you should be able to receive notifications in any app about what other apps are activating or deactivating. If I am correct, you could write a simple app that keeps track of how long a given application (e.g., XCode) is active (as in foreground) and present you with some sort of summary log that you could decipher. Of course, if you have to go spend half an hour in the "reading room" and leave XCode active, that might skew the numbers, unless you have auto-sleep and are getting notifications for that as well.
     
  3. Peter Maurer macrumors member

    Joined:
    Oct 9, 2008
    #3
    That reminds me of a small app I wrote for a friend years ago (screenshot, download).

    This doesn't deal with sleeping (my friend didn't need that, and I was lazy), and it won't help you with discerning between individual Xcode projects, which is probably a deal breaker for the OP. But if a very simple apps monitor is all you need, then it might do the trick.
     
  4. timbos macrumors member

    Joined:
    Jan 2, 2009

Share This Page