Bohrium
August 27, 2019 ยท View on GitHub

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