public static void countTimeStatistic(String name, long time) { TimeStatistic stat = timeStatistics.get(name); if (stat == null) { stat = new TimeStatistic(); stat.setName(name); timeStatistics.put(name, stat); } stat.addStatistic(time); }
public Void call() throws Exception { if (_stat != null) _stat.start(); if (_parser != null) _parser.parse(_handlers, _resource, _resolver); if (_stat != null) _stat.end(); return null; }