 
 # Utility methods.
 util =
+  # Benchmark a piece of code
+  bm: (name, fn) ->
+    time = new Date
+    result = fn()
+    # console.log "#{name} : #{new Date() - time}ms"
+    result
+
   # Computes the bounding box of a jQuery set, which may be many sibling
   # elements with no parent in the set.
   computeBoundingBox: ($contents) ->

# Backbone.View.
class Xray.ViewSpecimen extends Xray.Specimen
  @all = []

  makeLabel: ->
    if @template
      handles = $("<div class='xray-specimen-multi-handle'>")
      handles.append(super).append(@template.makeLabel())
    else
      super


# Wraps elements that were rendered by a template, e.g. a Rails partial or

      height : boxFrame.bottom - boxFrame.top
    }

