Add method getTime() to get remaining time