/*
 * BEGIN FLOCK GPL
 *
 * Copyright Flock Inc. 2005-2009
 * http://flock.com
 *
 * This file may be used under the terms of the
 * GNU General Public License Version 2 or later (the "GPL"),
 * http://www.gnu.org/licenses/gpl.html
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * END FLOCK GPL
 */

#include "nsISupports.idl"

[scriptable, uuid(5499e4fd-60ab-4c39-aa6d-badd82e4dd39)]
interface flockIStopWatch : nsISupports {
  /**
   * Starts the stop watch, prints the current time out to the console and
   * stores both the start time and stopWatchName.
   */
  void start(in AString nStopWatchName);

  /**
   * Stops the stop watch, prints the current time and the total stop watch
   * time to the console.
   */
  void stop();

  /**
   * Marks a point for the stop watch, similar to a Lap.  This will print out
   * the current time and the total from start to now and the total from last
   * Mark point to now.
   */
  void mark(in AString nMarkName);
};
