Time-sensitive intermittent computing meets legacy software