Add getTaskActiveTime() method