Mercurial > dive4elements > river
changeset 5887:88fca576e9e6
Datacage: Added some time meassuremnt for templating.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 02 May 2013 17:55:01 +0200 |
parents | 6a63456b99d9 |
children | a763fb7aa2e5 |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/Builder.java |
diffstat | 1 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/Builder.java Tue Apr 30 19:27:15 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/Builder.java Thu May 02 17:55:01 2013 +0200 @@ -845,9 +845,19 @@ ) throws SQLException { - BuildHelper helper = new BuildHelper(output, connections, parameters); - - helper.build(); + long startTime = System.currentTimeMillis(); + try { + BuildHelper helper = + new BuildHelper(output, connections, parameters); + helper.build(); + } + finally { + if (log.isDebugEnabled()) { + long stopTime = System.currentTimeMillis(); + log.debug("Building the datacage result took " + + (stopTime-startTime)/1000f + " secs."); + } + } } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :