// -*- c++ -*-

/***************************************************************************
                          Timer.h  -  description
                             -------------------
    begin                : Tue Nov 25 2003
    copyright            : (C) 2003 by Sven Reichard
    email                : sven.reichard@freenet.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

# ifndef Timer_h
# define Timer_h
# include <iostream>
namespace Alice
{
  class Timer
  {
  public:
    Timer();
    virtual ~Timer();
    virtual double age() = 0;

    static void printTime( std::ostream& out, double seconds );
  };

  inline
  std::ostream&
  operator<<( std::ostream& out, Timer& t )
  {
    Timer::printTime( out, t.age() );
    return out;
  };


}; // namespace Alice
# endif // Timer_h
