Changeset 16818 in josm


Ignore:
Timestamp:
2020-08-02T15:30:17+02:00 (6 days ago)
Author:
simon04
Message:

RenderingCLI: tune logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/RenderingCLI.java

    r16817 r16818  
    4848import org.openstreetmap.josm.tools.OptionParser.OptionCount;
    4949import org.openstreetmap.josm.tools.OptionParser.OptionParseException;
     50import org.openstreetmap.josm.tools.Stopwatch;
    5051import org.openstreetmap.josm.tools.Territories;
    5152
     
    161162            parseArguments(argArray);
    162163            initialize();
     164            Stopwatch stopwatch = Stopwatch.createStarted();
     165            String task = tr("Rendering {0} to {1}", argInput, argOutput);
     166            System.err.println(task);
    163167            DataSet ds = loadDataset();
    164168            RenderingArea area = determineRenderingArea(ds);
     
    167171            BufferedImage image = rh.render();
    168172            writeImageToFile(image);
     173            System.err.println(stopwatch.toString(task));
    169174        } catch (FileNotFoundException | NoSuchFileException e) {
    170175            if (Logging.isDebugEnabled()) {
Note: See TracChangeset for help on using the changeset viewer.