elapsed library

Get time elapsed for asynchronous function in a single line of code.

Classes

Elapsed<T>
Wraps the elapsed(...) method's result along with the time elapsed value.

Functions

elapsed<T>(Future<T> future) Future<Elapsed<T>>
Wrap a Future with this method and it will return an instance of the actual result and the time it took to complete the future.