Replaced deprecated 'new' with alloc-init
Added a utility class for time functions.