Changeset 15755 in josm for trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetReader.java
- Timestamp:
- 2020-01-23T22:57:46+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetReader.java
r15072 r15755 47 47 import org.openstreetmap.josm.tools.I18n; 48 48 import org.openstreetmap.josm.tools.Logging; 49 import org.openstreetmap.josm.tools.Stopwatch; 49 50 import org.openstreetmap.josm.tools.Utils; 50 51 import org.openstreetmap.josm.tools.XmlObjectParser; … … 353 354 Collection<TaggingPreset> tp; 354 355 Logging.debug("Reading presets from {0}", source); 355 long startTime = System.currentTimeMillis();356 Stopwatch stopwatch = Stopwatch.createStarted(); 356 357 try ( 357 358 CachedFile cf = new CachedFile(source).setHttpAccept(PRESET_MIME_TYPES); … … 368 369 } 369 370 if (Logging.isDebugEnabled()) { 370 Logging.debug("Presets read in {0}", Utils.getDurationString(System.currentTimeMillis() - startTime));371 Logging.debug("Presets read in {0}", stopwatch); 371 372 } 372 373 return tp;
Note:
See TracChangeset
for help on using the changeset viewer.