Latest 0.1.1
Homepage https://github.com/Vel0x/DMTime
License MIT
Platforms ios 6.0, requires ARC
Authors

CI Status
Version
License
Platform

A simple Objective-C timer for timing code

Usage

#import <DMTime.h>
...
[DMTime startTimer:@"Some key"];
// Some long running process
DMTimeResult *result = [DMTime endTimer:@"Some key"];
NSLog(@"Code took %f seconds", [result seconds]);

Or if you prefer blocks:

DMTimeResult *result = [DMTime timeBlock:^{
    // Some long running process
}];
NSLog(@"Code took %f milliseconds", [result milliseconds]);

Requirements

Installation

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

pod "DMTime"

License

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

Latest podspec

{
    "name": "DMTime",
    "version": "0.1.1",
    "summary": "A iOS, Objective-C, timing framework. e.g. A code timer",
    "description": "                        #CocoaTimenn                        A simple Objective-C timer for timing code.nn                        ##Examplesnn                            [DMTime startTimer:@"Some key"];n                            // Some long running processn                            DMTimeResult *result = [DMTime endTimer:@"Some key"];n                            NSLog(@"Code took %f seconds", [result seconds]);nn                        Or if you prefer blocks:nn                            DMTimeResult *result = [DMTime timeBlock:^{n                            // Some long running processn                            }];n                            NSLog(@"Code took %f milliseconds", [result milliseconds]);n",
    "homepage": "https://github.com/Vel0x/DMTime",
    "license": "MIT",
    "authors": {
        "Vel0x": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Vel0x/DMTime.git",
        "tag": "0.1.1"
    },
    "social_media_url": "https://twitter.com/vel0x",
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "DMTime": [
            "Pod/Assets/*.png"
        ]
    },
    "public_header_files": "Pod/Classes/**/*.h"
}

Pin It on Pinterest

Share This