adding time library by Michael Margolis