Added static method for getting time