Dynamic latency sensitivity recognition: An application to energy saving