Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ainame/ameaspectspeedometer
AMEAspectSpeedometer provide a solusion of velocity measurement in your application code.
https://github.com/ainame/ameaspectspeedometer
Last synced: about 2 months ago
JSON representation
AMEAspectSpeedometer provide a solusion of velocity measurement in your application code.
- Host: GitHub
- URL: https://github.com/ainame/ameaspectspeedometer
- Owner: ainame
- License: mit
- Created: 2014-07-13T11:53:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-20T14:29:33.000Z (over 9 years ago)
- Last Synced: 2024-11-11T01:09:15.351Z (2 months ago)
- Language: Objective-C
- Homepage:
- Size: 160 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AMEAspectSpeedometer
[![CI Status](http://img.shields.io/travis/ainame/AMEAspectSpeedometer.svg?style=flat)](https://travis-ci.org/ainame/AMEAspectSpeedometer)
[![Version](https://img.shields.io/cocoapods/v/AMEAspectSpeedometer.svg?style=flat)](http://cocoadocs.org/docsets/AMEAspectSpeedometer)
[![License](https://img.shields.io/cocoapods/l/AMEAspectSpeedometer.svg?style=flat)](http://cocoadocs.org/docsets/AMEAspectSpeedometer)
[![Platform](https://img.shields.io/cocoapods/p/AMEAspectSpeedometer.svg?style=flat)](http://cocoadocs.org/docsets/AMEAspectSpeedometer)## Usage
To run the example project, clone the repo, and run `pod install` from the Example directory first.
```objc
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](http://cocoapods.org). To install
it, simply add the following line to your Podfile:pod "AMEAspectSpeedometer"
## Author
ainame, [email protected]
## License
AMEAspectSpeedometer is available under the MIT license. See the LICENSE file for more info.