Add duration functions to Utils

Two duration functions for Utils to help APs with tracking attempt duration.

Replaces #92