• 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: How do I obtain a TimeStamp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How do I obtain a TimeStamp (From: John Draper <email@hidden>)

  • Prev by Date: Re: How do I obtain a TimeStamp
  • Next by Date: Re: Punch a hole through a window other than your own?
  • Previous by thread: Re: How do I obtain a TimeStamp
  • Next by thread: Re: How do I obtain a TimeStamp
  • Index(es):
    • Date
    • Thread