Bohrium is part of the E-sites iOS Suite.
A small helper class to benchmark specific code parts at runtime.
Podfile:
pod 'Bohrium'
And then
pod install
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)