CocoaPods trunk is moving to be read-only. Read more on the blog, there are 16 months to go.

Grigory Ptashko

1pod

GPTimeProfiler

GPTimeProfiler is used to track the execution time of an arbitrary piece of code. The time is tracked during one profile cycle. One cycle is the time between two method calls -start and -stop. The object of the GPTimeProfiler class stores the total amount of profile cycles. With every call to the -stop method the amount of profile cycles is increased by 1. GPTimeProfiler can be used to determine the overall time of execution or the average time of one profile cycle. It can also be used to track the amount of profile cycles.

It has the convenience methods to get the tracked time in seconds and milliseconds as NSString.

The time tracking part of the GPTimeProfiler is based on the CFAbsoluteTimeGetCurrent() function. The GPTimeProfiler can be used in Objective-C and Swift based applications.

License: MIT

  • Objective C++