• 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
Re: Milliseconds Function?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Milliseconds Function?


  • Subject: Re: Milliseconds Function?
  • From: "Erik M. Buck" <email@hidden>
  • Date: Fri, 25 Jan 2002 20:16:48 -0600
  • Organization: EMB & Assocites Inc.

look at gettimeofday() or

timeIntervalSinceReferenceDate
- (NSTimeInterval)timeIntervalSinceReferenceDate

Returns the interval between the receiver and the system's absolute
reference date, 1 January 2001, GMT. If the receiver is earlier than the
absolute reference date, the return value is negative.
This is the primitive method for NSDate. If you subclass NSDate, you must
override this method with your own implementation for it.

See Also: - timeIntervalSinceDate:, - timeIntervalSince1970, -
timeIntervalSinceNow, + timeIntervalSinceReferenceDate

NSTimeInterval is double, stores seconds, and has more than millisecond
precision. Just use the fractional part for fractions of a second.


----- Original Message -----

References: 
 >Milliseconds Function? (From: Brian Moore <email@hidden>)

  • Prev by Date: Re: How viable is Cocoa development?
  • Next by Date: Localized questions
  • Previous by thread: Re: Milliseconds Function?
  • Next by thread: Re: Milliseconds Function?
  • Index(es):
    • Date
    • Thread