summaryrefslogtreecommitdiff
path: root/src/output.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/output.cpp')
-rw-r--r--src/output.cpp7
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);