Re: Newbie simple question - Get Time
Re: Newbie simple question - Get Time
- Subject: Re: Newbie simple question - Get Time
- From: Hasan Diwan <email@hidden>
- Date: Wed, 9 Apr 2003 08:45:01 -0700
#import <Foundation/Foundation.h>
NSCalendarDate *d1=[NSCalendarDate calendarDate];
// calculation goes here
NSTimeInterval t1 = [d1 timeIntervalSinceNow];
On Wednesday, Apr 9, 2003, at 01:31 US/Pacific, Sebastien TOPIN wrote:
>
I found a function named TickCount(). I do not know how accurate it
>
is, but
>
it enables me to get enough accuracy for 1/10 of seconds.
>
>
Thanks.
>
----- Original Message -----
>
From: "Thomas Deniau" <email@hidden>
>
To: "Sebastien TOPIN" <email@hidden>
>
Sent: Wednesday, April 09, 2003 10:22 AM
>
Subject: Re: Newbie simple question - Get Time
>
>
>
Le 9/04/03 9:27, Sebastien TOPIN disait :
>
>
> I just need to know how to get the current time with Cocoa. I want to
>
measure
>
> time used for a calculation.
>
>
Try the standard UNIX time(NULL) or look at the NSDate documentation.
>
http://developer.apple.com/techpubs/macosx/Cocoa/Reference/Foundation/
>
ObjC_c
>
lassic/Classes/NSDate.html
>
>
--
>
Je ne suis pas capable d'entrer dans mon logiciel Outlook,car a chaque
>
fois que j'essais je suis obligi d'y aller de manihre autonome.
>
-+- AL in : Guide du Neuneu Usenetien - Frappez avant d'entrer -+-
>
_______________________________________________
>
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.
>
Hasan Diwan [
http://ibn.com/~hdiwan]
PGP: {42F0 5758 C3EB BA1F ABD2 ED49 3390 CCF0 7EE3 855B}
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
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.