TickMeter
Objective-C
@interface TickMeter : NSObject
Swift
class TickMeter : NSObject
a Class to measure passing time.
The class computes passing time by counting the number of ticks per second. That is, the following code computes the execution time in seconds: SNIPPET: snippets/core_various.cpp TickMeter_total
It is also possible to compute the average time over multiple runs: SNIPPET: snippets/core_various.cpp TickMeter_average
See
getTickCount, getTickFrequencyMember of Core
-
Declaration
Objective-C
- (instancetype)init;Swift
init() -
Declaration
Objective-C
- (double)getAvgTimeMilli NS_SWIFT_NAME(getAvgTimeMilli());Swift
func getAvgTimeMilli() -> Double -
Declaration
Objective-C
- (double)getAvgTimeSec NS_SWIFT_NAME(getAvgTimeSec());Swift
func getAvgTimeSec() -> Double -
Declaration
Objective-C
- (double)getFPS NS_SWIFT_NAME(getFPS());Swift
func getFPS() -> Double -
Declaration
Objective-C
- (double)getTimeMicro NS_SWIFT_NAME(getTimeMicro());Swift
func getTimeMicro() -> Double -
Declaration
Objective-C
- (double)getTimeMilli NS_SWIFT_NAME(getTimeMilli());Swift
func getTimeMilli() -> Double -
Declaration
Objective-C
- (double)getTimeSec NS_SWIFT_NAME(getTimeSec());Swift
func getTimeSec() -> Double -
Declaration
Objective-C
- (long)getCounter NS_SWIFT_NAME(getCounter());Swift
func getCounter() -> Int -
Declaration
Objective-C
- (long)getTimeTicks NS_SWIFT_NAME(getTimeTicks());Swift
func getTimeTicks() -> Int -
Declaration
Objective-C
- (void)reset NS_SWIFT_NAME(reset());Swift
func reset() -
Declaration
Objective-C
- (void)start NS_SWIFT_NAME(start());Swift
func start() -
Declaration
Objective-C
- (void)stop NS_SWIFT_NAME(stop());Swift
func stop()
View on GitHub
TickMeter Class Reference