Updating time counter