Bohrium 4.2.3

Bohrium 4.2.3

Maintained by Bas van Kuijck.



Bohrium 4.2.3

  • By
  • Bas van Kuijck

Bohrium

Bohrium

Bohrium is part of the E-sites iOS Suite.


A small helper class to benchmark specific code parts at runtime.

forthebadge forthebadge

Platform CocoaPods Compatible Travis-ci

Installation

Podfile:

pod 'Bohrium'

And then

pod install

Implementation

import Bohrium

let timer = Bohrium.Timer(name: "APIRequest")

Alamofire.request("https://httpbin.org/get").responseJSON { response in
   timer.tick("Response received")
   
   YourSpecialParser.parse(response) { result in
   	   timer.stop("Parser finished")
   }
}

Would result into something like this:

[Bohrium] 🔫 Start 'APIRequest' 
[Bohrium] ⏱ 'APIRequest' at 1.036: "Response received" (+ 1.036)
[Bohrium] 🏁 'APIRequest' at 2.346: "Parser finished" (+ 1.309)