Changeset 16069 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2020-03-08T09:25:04+01:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Stopwatch.java
r15755 r16069 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.tools; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 /** … … 44 46 return Utils.getDurationString(Math.max(0, elapsed())); 45 47 } 48 49 /** 50 * Formats the given task name and duration since start as i18n string 51 * @param taskName the task name 52 * @return the task name and duration since start as i18n string 53 */ 54 public String toString(String taskName) { 55 return tr("{0} completed in {1}", taskName, toString()); 56 } 46 57 } -
trunk/src/org/openstreetmap/josm/tools/XmlUtils.java
r15755 r16069 87 87 Logging.debug("Starting DOM parsing of {0}", is); 88 88 Document result = newSafeDOMBuilder().parse(is); 89 Logging.debug( "DOM parsing done in {0}", stopwatch);89 Logging.debug(stopwatch.toString("DOM parsing")); 90 90 return result; 91 91 } … … 118 118 Logging.debug("Starting SAX parsing of {0} using {1}", is, dh); 119 119 newSafeSAXParser().parse(is, dh); 120 Logging.debug( "SAX parsing done in {0}", stopwatch);120 Logging.debug(stopwatch.toString("SAX parsing")); 121 121 } 122 122
Note:
See TracChangeset
for help on using the changeset viewer.