Changeset 11290 in josm


Ignore:
Timestamp:
2016-11-22T15:42:34+01:00 (3 years ago)
Author:
simon04
Message:

see #14025 - Merge layer: log duration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/MergeLayerAction.java

    r11123 r11290  
    1818import org.openstreetmap.josm.tools.ImageProvider;
    1919import org.openstreetmap.josm.tools.Shortcut;
     20import org.openstreetmap.josm.tools.Utils;
    2021
    2122/**
     
    4142        if (targetLayer == null)
    4243            return;
     44        final Object actionName = MergeLayerAction.this.getValue(NAME);
    4345        Main.worker.submit(() -> {
     46                final long start = System.currentTimeMillis();
    4447                boolean layerMerged = false;
    4548                for (final Layer sourceLayer: sourceLayers) {
     
    5962                if (layerMerged) {
    6063                    Main.getLayerManager().setActiveLayer(targetLayer);
     64                    Main.info(tr("{0} completed in {1}", actionName, Utils.getDurationString(System.currentTimeMillis() - start)));
    6165                }
    6266        });
Note: See TracChangeset for help on using the changeset viewer.