Git Product home page Git Product logo

chrono's Introduction

Chrono

CI Status Version License Platform

Chrono is a lightweight and easy-to-use timer for profiling processes on iOS.

Usage

Create timers on the fly and stop them whenever you are finished with what is being profiled.

[Chrono start:@"someTask"];

// Perform task

[Chrono stop:@"someTask"];

console:

someTask finished in 135.25 ms

Multiple operations & operations split up into pieces:

[Chrono start:@"lightTask"];
[Chrono start:@"heavyTask"];

// Do work
[Chrono subOperation:@"firstPart" operation:@"heavyTask"];
// Do work
[Chrono subOperation:@"secondPart" operation:@"heavyTask"];
// Do work
[Chrono subOperation:@"thirdPart" operation:@"heavyTask"];

[Chrono stop:@"lightTask"];
[Chrono stop:@"heavyTask"];

console:

lightTask finished in 82.55 ms
---------------------------------------------
heavyTask finished in 5.90 s
heavyTask - firstPart took 1.14 s (19.32%)
heavyTask - secondPart took 1.02 s (17.28%)
heavyTask - thirdPart took 3.74 s (63.40%)

Contributing

If you have feature requests or bug reports, feel free to help out by sending pull requests or by creating new issues.

License

Chrono is distributed under the terms and conditions of the MIT license.

Installation

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

pod "Chrono"

Author

larssondaniel, [email protected]

License

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

chrono's People

Contributors

larssondaniel avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.