/**
 * Measures the response and render time of a page.
 *
 * A page needs to includes this js-file as one of 
 * the first statements and has to be opened using the performance.html.
 *
 * To add custom columns for measuring use the JavaScript code
 * 
 * if (window.addPerformanceMeasuringColumn) {
 *   addPerformanceMeasuringColumn("myColumn", "My Title", 123456);
 * }
 *
 * Where 123456 is the time in milliseconds.
 *
 * Copyright (c) 2007 by empolis GmbH
 *
 * @author Tobias Noebel
 */
 
if (top && top.opener && top.opener.renderingBegin) {
  top.opener.renderingBegin(window, document);
}

var addPerformanceMeasuringColumn;
if (!addPerformanceMeasuringColumn) {
  addPerformanceMeasuringColumn = function(name, title, time) {
    if (top && top.opener && top.opener.addColumn) {
      top.opener.addColumn(name, title, time);
    }
  };
}
