From ac3051c78a1e30c01f2ea55dfb55b5f44cee6bfb Mon Sep 17 00:00:00 2001 From: Frederik Lauer Date: Tue, 31 May 2016 00:23:10 +0200 Subject: [PATCH] Minor changes: printing values with precision 2 printing Units without [ ] --- DRAMSys/simulator/src/simulation/Dram.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DRAMSys/simulator/src/simulation/Dram.h b/DRAMSys/simulator/src/simulation/Dram.h index 2d201ebe..0f860701 100644 --- a/DRAMSys/simulator/src/simulation/Dram.h +++ b/DRAMSys/simulator/src/simulation/Dram.h @@ -216,8 +216,8 @@ struct Dram : sc_module double averagePower = (totalEnergy / sc_time_stamp().to_seconds()) / 1e9; // Print the final total energy and the average power for the simulation - cout << name() << string("\tTotal Energy: \t") + to_string(totalEnergy) + string("\t[pJ]") << endl; - cout << name() << string("\tAverage Power: \t") + to_string(averagePower) + string("\t[mW]") << endl; + cout << name() << string("\tTotal Energy: \t") << fixed <