Added time calculations code in utils

Change-Id: I6e070e22ae118243a967cc0c562a278eb73d2b0e