Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.