diff options
Diffstat (limited to 'src/classes/share')
-rw-r--r-- | src/classes/share/javax/media/j3d/BehaviorScheduler.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/classes/share/javax/media/j3d/BehaviorScheduler.java b/src/classes/share/javax/media/j3d/BehaviorScheduler.java index 3af26ba..340623c 100644 --- a/src/classes/share/javax/media/j3d/BehaviorScheduler.java +++ b/src/classes/share/javax/media/j3d/BehaviorScheduler.java @@ -13,6 +13,7 @@ package javax.media.j3d; import java.util.ArrayList; +import java.util.logging.Level; class BehaviorScheduler extends J3dThread { @@ -210,6 +211,9 @@ class BehaviorScheduler extends J3dThread { behaviorStructure.handleBehaviorPost(); lastStopTime = J3dClock.currentTimeMillis(); + if (MasterControl.isStatsLoggable(Level.FINE)) { + VirtualUniverse.mc.recordTime(MasterControl.TimeType.BEHAVIOR, (lastStopTime-lastStartTime)*1000000); + } } void free() { |