source: trunk/poppler/mypoppler/goo/GooTimer.h @ 2

Last change on this file since 2 was 2, checked in by Eugene Romanenko, 15 years ago

First import

File size: 727 bytes
Line 
1//========================================================================
2//
3// GooList.h
4//
5// Copyright 2001-2003 Glyph & Cog, LLC
6//
7//========================================================================
8
9#ifdef HAVE_GETTIMEOFDAY
10
11#ifndef GOOTIMER_H
12#define GOOTIMER_H
13
14#ifdef USE_GCC_PRAGMAS
15#pragma interface
16#endif
17
18#include "gtypes.h"
19#include <sys/time.h>
20
21//------------------------------------------------------------------------
22// GooList
23//------------------------------------------------------------------------
24
25class GooTimer {
26public:
27
28  // Create a new timer.
29  GooTimer();
30
31  void stop ();
32  double getElapsed();
33
34
35private:
36
37        struct timeval start;
38        struct timeval end;
39        GBool active;
40};
41
42#endif
43
44#endif
Note: See TracBrowser for help on using the repository browser.