Revision: 18624
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18624&view=rev
Author:   ununnilium
Date:     2012-05-14 13:42:03 +0000 (Mon, 14 May 2012)
Log Message:
-----------
Add logging output for BibDocument opening times

Modified Paths:
--------------
    trunk/bibdesk_ios/BDSKMasterViewController.m

Modified: trunk/bibdesk_ios/BDSKMasterViewController.m
===================================================================
--- trunk/bibdesk_ios/BDSKMasterViewController.m        2012-05-14 06:36:35 UTC 
(rev 18623)
+++ trunk/bibdesk_ios/BDSKMasterViewController.m        2012-05-14 13:42:03 UTC 
(rev 18624)
@@ -232,8 +232,11 @@
         BDSKGroupTableViewController *viewController = 
segue.destinationViewController;
         viewController.navigationItem.title = file.nameNoExtension;
         
+        NSDate *startOpenDate = [NSDate date];
         [document openWithCompletionHandler:^(BOOL success) {            
             if (success) {
+                NSTimeInterval openingTime = -[startOpenDate 
timeIntervalSinceNow];
+                NSLog(@"Opened %@ in %f seconds", file.name, openingTime);
                 dispatch_async(dispatch_get_main_queue(), ^{
                     viewController.document = document;
                     [document release];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to