use of org.apache.jena.atlas.lib.Timer in project jena by apache.
the class TDBLoader method loadModel.
/** Load the contents of a list of URLs into a model - may not be as efficient as bulk loading into a TDB graph */
public static void loadModel(Model model, List<String> urls, boolean showProgress) {
Timer timer = new Timer();
timer.startTimer();
for (String s : urls) {
if (showProgress)
System.out.printf("Load: %s\n", s);
loadModel(model, s, showProgress);
}
long time = timer.endTimer();
if (showProgress)
System.out.printf("Time for load: %.2fs\n", time / 1000.0);
model.close();
}
use of org.apache.jena.atlas.lib.Timer in project jena by apache.
the class GraphLoadMonitor method resetTimer.
public void resetTimer() {
if (timer != null)
timer.endTimer();
timer = new Timer();
timer.startTimer();
}
use of org.apache.jena.atlas.lib.Timer in project jena by apache.
the class QueryIteratorTiming method start.
private void start() {
if (timer == null) {
timer = new Timer();
timer.startTimer();
milliseconds = NotFinished;
}
}
Aggregations