Changeset 19121


Ignore:
Timestamp:
08/01/18 19:10:06 (6 years ago)
Author:
tbretz
Message:
Do not print a warning if no ascii file should have been written, print execution time per row.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/rootifysql.cc

    r19118 r19121  
    730730
    731731    ofstream fout(write);
    732     if (!fout)
     732    if (!write.empty() && !fout)
    733733        cout << "WARNING: Writing to '" << write << "' failed: " << strerror(errno) << endl;
    734734
     
    835835    if (verbose>0)
    836836    {
     837        const auto sec = Time().UnixTime()-start.UnixTime();
     838
    837839        cout << Tools::Scientific(tfile.GetSize()) << "B written to disk.\n";
    838840        cout << "File closed.\n";
    839         cout << "Execution time: " << Time().UnixTime()-start.UnixTime() << "s\n";
     841        cout << "Execution time: " << sec << "s ";
     842        cout << "(" << Tools::Fractional(sec/count) << "s/row)\n";
    840843        cout << "--------------------------------------------------------------" << endl;
    841844
Note: See TracChangeset for help on using the changeset viewer.