extracted time-taken to lib