trying to optimize, but...

30 views
Skip to first unread message

Colin Thomas-Arnold

unread,
Sep 10, 2012, 12:41:59 PM9/10/12
to rubym...@googlegroups.com
I'm used to throwing in calls to gettimeofday() and subtracting off the microseconds to get a very granular timer.  i would like to use this to find out where the bottleneck is in teacup that is causing viewDidLoad to be so slow.

but that function is not available, and NSDate.timeIntervalSinceReferenceDate only returns seconds that have 0.25 granularity.  not nearly enough :-/

anyone have a good way to do simple microsecond-precision timing?



Fernando Espinosa

unread,
Sep 10, 2012, 12:48:52 PM9/10/12
to rubym...@googlegroups.com
What about Time.now.to_f?

10 de septiembre de 2012 18:41
--
 
 
 
Reply all
Reply to author
Forward
0 new messages