Latest 0.0.1
Homepage https://github.com/dingchunhua/DRTimer
License MIT
Platforms ios 5.0
Authors

DRTimer是什么

DRTimer是一个方便快速打印方法执行耗时工具,可打印任意代码块或函数执行耗时。

安装

pod "DRTimer"

如何使用

- (void)viewDidLoad {
    [super viewDidLoad];

    [DRTimer start:@"方法1"];
    // Do something
    [DRTimer stop:@"方法1"];
}

控制台打印

 [DRTimer][方法1] 0.033975ms

Latest podspec

{
    "name": "DRTimer",
    "version": "0.0.1",
    "summary": "Print method execution time",
    "description": "DRTimer is Print method execution time",
    "homepage": "https://github.com/dingchunhua/DRTimer",
    "license": "MIT",
    "authors": {
        "dingchunhua": "[email protected]"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source": {
        "git": "https://github.com/dingchunhua/DRTimer.git",
        "tag": "0.0.1"
    },
    "source_files": "DRTimer/DRTimer/**/*.{h,m}"
}

Pin It on Pinterest

Share This