Skip to content

ainame/AMEAspectSpeedometer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AMEAspectSpeedometer

CI Status Version License Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

AMEAspectSpeedometer aspectSpeedometer = [AMEAspectSpeedometer new];
[aspectSpeedometer measureWithName:@"test"
                             target:self
                             around:@selector(returnNumber)
                   usingReportBlock:^(AMESpeedometerReport *report) { NSLog(@"%@", report); }];

[aspectSpeedometer measureWithName:@"test tap start and finish"
                             target:self
                              start:@selector(tapStartButton:)
                             finish:@selector(tapFinishButton:)
                   usingReportBlock:^(AMESpeedometerReport *report) {
                       NSLog(@"%@", report);
                       self.label.text = [NSString stringWithFormat:@"elapsed time: %f", report.elapsedTime];
                   }];

Requirements

Installation

AMEAspectSpeedometer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "AMEAspectSpeedometer"

Author

ainame, s.namai.09@gmail.com

License

AMEAspectSpeedometer is available under the MIT license. See the LICENSE file for more info.

About

AMEAspectSpeedometer provide a solusion of velocity measurement in your application code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published