• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Time Question (newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Time Question (newbie)


  • Subject: Time Question (newbie)
  • From: Tom Gray <email@hidden>
  • Date: Sun, 19 Jan 2003 18:48:11 -0500

Hi Guys,

As always, thanks!

I am trying to add a cumulative time or running time to my application. Part of my "pay the shareware fee" nag.

I have seen quite a few "Date" objects in Cocoa but I have not found a good way to get a cumulative or elapsed time object. (I would like to display a clock in hhh:mm format or dd:hh:mm format.)

Currently I am noting the date when the application launches and quits. I get the time interval between the launch and quit (a double or NSTimeInterval) and save that double in my prefs.

I now want to format and display that elapsed time. I can't seem to find a Cocoa class that handles elapsed time.

Any ideas?


Tom Gray
-------------
email@hidden
or
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Time Question (newbie)
      • From: Jonathan Jackel <email@hidden>
  • Prev by Date: OpenGL & Cocoa (NSEvents)
  • Next by Date: Re: Examples of applications developed with Cocoa?
  • Previous by thread: OpenGL & Cocoa (NSEvents)
  • Next by thread: Re: Time Question (newbie)
  • Index(es):
    • Date
    • Thread