Changeset 19120


Ignore:
Timestamp:
08/01/18 19:09:30 (6 years ago)
Author:
tbretz
Message:
Print average execution time per row.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

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

    r19116 r19120  
    644644    if (verbose>0)
    645645    {
    646         cout << "Total execution time: " << Time().UnixTime()-start.UnixTime() << "s\n" << endl;
     646        const auto sec = Time().UnixTime()-start.UnixTime();
     647        cout << "Total execution time: " << sec << "s ";
     648        cout << "(" << Tools::Fractional(sec/count) << "s/row)\n";
    647649
    648650        try
  • trunk/FACT++/src/root2sql.cc

    r19116 r19120  
    632632    if (verbose>0)
    633633    {
    634         cout << "Total execution time: " << Time().UnixTime()-start.UnixTime() << "s\n" << endl;
     634        const auto sec = Time().UnixTime()-start.UnixTime();
     635        cout << "Total execution time: " << sec << "s ";
     636        cout << "(" << Tools::Fractional(sec/count) << "s/row)\n";
    635637
    636638        try
Note: See TracChangeset for help on using the changeset viewer.