summaryrefslogtreecommitdiff
path: root/Build/source/libs/poppler/poppler-0.12.4/goo/GooTimer.h
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2011-04-12 14:17:47 +0000
committerTaco Hoekwater <taco@elvenkind.com>2011-04-12 14:17:47 +0000
commit307453997ef030ec4dfa1e876feaf0b8b8125bab (patch)
treeab2054693ba95e9ac8f6e3478b4d0175d893329f /Build/source/libs/poppler/poppler-0.12.4/goo/GooTimer.h
parentd95b11a25d3d9e17cc4afb9c8713ef4037567527 (diff)
check in luatex 0.66.0
git-svn-id: svn://tug.org/texlive/trunk@22059 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/poppler/poppler-0.12.4/goo/GooTimer.h')
-rwxr-xr-xBuild/source/libs/poppler/poppler-0.12.4/goo/GooTimer.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/Build/source/libs/poppler/poppler-0.12.4/goo/GooTimer.h b/Build/source/libs/poppler/poppler-0.12.4/goo/GooTimer.h
new file mode 100755
index 00000000000..f03413c21e6
--- /dev/null
+++ b/Build/source/libs/poppler/poppler-0.12.4/goo/GooTimer.h
@@ -0,0 +1,54 @@
+//========================================================================
+//
+// GooTimer.cc
+//
+// This file is licensed under GPLv2 or later
+//
+// Copyright 2005 Jonathan Blandford <jrb@redhat.com>
+// Copyright 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
+// Inspired by gtimer.c in glib, which is Copyright 2000 by the GLib Team
+//
+//========================================================================
+
+#ifndef GOOTIMER_H
+#define GOOTIMER_H
+
+#ifdef USE_GCC_PRAGMAS
+#pragma interface
+#endif
+
+#include "gtypes.h"
+#ifdef HAVE_GETTIMEOFDAY
+#include <sys/time.h>
+#endif
+
+#ifdef _MSC_VER
+#include <windows.h>
+#endif
+
+//------------------------------------------------------------------------
+// GooTimer
+//------------------------------------------------------------------------
+
+class GooTimer {
+public:
+
+ // Create a new timer.
+ GooTimer();
+
+ void start();
+ void stop();
+ double getElapsed();
+
+private:
+#ifdef HAVE_GETTIMEOFDAY
+ struct timeval start_time;
+ struct timeval end_time;
+#elif defined(_MSC_VER)
+ LARGE_INTEGER start_time;
+ LARGE_INTEGER end_time;
+#endif
+ GBool active;
+};
+
+#endif