Get current millis before adding the task.