diff options
author | Tim Besard <tim.besard@gmail.com> | 2011-11-28 17:44:47 +0100 |
---|---|---|
committer | Tim Besard <tim.besard@gmail.com> | 2011-11-28 17:44:47 +0100 |
commit | 7815be3ae957e4eb5bb8a66ad12180bbd150caf3 (patch) | |
tree | 0fee458b2b9f91debdc08a4f843bf24a43c45305 /src/output.cpp | |
parent | ca97869a32b268a6e0cf04a29f2d0ee97385d63f (diff) |
Reverted part of the output option removal.
Diffstat (limited to 'src/output.cpp')
-rw-r--r-- | src/output.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/output.cpp b/src/output.cpp index c675945..75ae845 100644 --- a/src/output.cpp +++ b/src/output.cpp @@ -28,7 +28,12 @@ // void Output::print(Experiment &e, int64 ops, std::vector<double> seconds, double ck_res) { - if (e.output_mode == Experiment::CSV) { + if (e.output_mode == Experiment::HEADER) { + Output::header(e, ops, ck_res); + } else if (e.output_mode == Experiment::CSV) { + for (int i = 0; i < seconds.size(); i++) + Output::csv(e, ops, seconds[i], ck_res); + } else if (e.output_mode == Experiment::BOTH) { Output::header(e, ops, ck_res); for (int i = 0; i < seconds.size(); i++) Output::csv(e, ops, seconds[i], ck_res); |