NEW: CPU energy computation and timing of CPU and GPU computation