Re: How do I obtain a TimeStamp
Re: How do I obtain a TimeStamp
- Subject: Re: How do I obtain a TimeStamp
- From: Ricky Sharp <email@hidden>
- Date: Wed, 30 Mar 2005 16:39:21 -0600
On Mar 30, 2005, at 4:29 PM, John Draper wrote:
Throughout my program, I'm going to want to put "time stamps".
How do I do this?
I'm not concerned about the time units at this point, I just need
to know how to do this..
In looking at the Docs, I see that NSEvent has a "timestamp"
method, but how do I get my application's NSEvent reference
to use it?
ie:
time_stamp = [myEvent timestamp];
But how do I get "myEvent" to reference my current event object?
See NSApplication's currentEvent:
Although, I'm not sure what you're specifically asking for. Do you
want to only log your events? Or do you want to instrument your code to
spit out timestamps when they're actually executed?
Simply putting in some NSLog messages will give you time stamps to I
believe millisecond precision.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden