Re: Milliseconds Function?
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 -----