Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.vex.core/src/org/eclipse/vex/core/internal/layout/CommentBlockElementBox.java')
-rw-r--r--org.eclipse.vex.core/src/org/eclipse/vex/core/internal/layout/CommentBlockElementBox.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/layout/CommentBlockElementBox.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/layout/CommentBlockElementBox.java
index cf4e5b66..655763f3 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/layout/CommentBlockElementBox.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/layout/CommentBlockElementBox.java
@@ -31,8 +31,9 @@ public class CommentBlockElementBox extends BlockElementBox {
@Override
public List<Box> createChildren(final LayoutContext context) {
long start = 0;
- if (VEXCorePlugin.getInstance().isDebugging())
+ if (VEXCorePlugin.getInstance().isDebugging()) {
start = System.currentTimeMillis();
+ }
final Element element = getElement();
final int width = getWidth();
@@ -54,8 +55,9 @@ public class CommentBlockElementBox extends BlockElementBox {
if (VEXCorePlugin.getInstance().isDebugging()) {
final long end = System.currentTimeMillis();
- if (end - start > 10)
+ if (end - start > 10) {
System.out.println("CommentBlockElementBox.layout for " + getElement().getPrefixedName() + " took " + (end - start) + "ms");
+ }
}
return childList;

Back to the top