public Optional<Long> timeCurrentIdlingStarted() {
        return timeCurrentIdlingStarted;
    }
This function will return the time task idling started, if the task is not currently idling it will return empty
streams/src/main/java/org/apache/kafka/streams/processor/TaskMetadata.java