Real-Time Energy Consumption Measurements in Data Centers