// clock.h
// celes@tecgraf.puc-rio.br
// Jul 2002

#ifndef UTL_CLOCK_H
#define UTL_CLOCK_H

#include "defines.h"

double UTL_API gettime (void);
void UTL_API sleep(double seconds);

class UTL_API UtlClock
{
  bool m_running;
  double m_ref;
  double m_time;
  double m_lastref;
public:
  UtlClock ();

  double Start (double reference);
  double Start ();
  double Stop ();
  void   Pause ();
  double GetStartTime () const;
  double GetTime () const;
  double GetElapsedTime ();
};

#endif
