Switch time library for more flexibility