How can I use the Cocoa app?

What is an easy way to launch a Cocoa application? (Alternatively, any good way to measure performance will be sufficient.)

(I have two different structures and I would like to compare their characteristics over some fixed input data)

+3
source share
3 answers

The tools will store the clock for you, although you may find that the difference in wireframes is within the range of how quickly you can start the data application.

Shark CHUD, . ; , , . .

+9
NSDate *startDate = [NSDate date];
// ...
NSDate *stopDate = [NSDate date];

NSLog(@"-- time: %f", [stopDate timeIntervalSinceDate:startDate]);
+1

You can calculate cocoa application time using the NSTimer class. start the timer when the program starts, and end it after the completion of the entire program.

-2
source

Source: https://habr.com/ru/post/1705613/


All Articles