[cairo-commit] 2 commits - perf/cairo-perf.h perf/cairo-perf-timer.h perf/cairo-perf-timer-posix.c perf/cairo-perf-timer-win32.c perf/Makefile.am perf/paint.c perf/timer-alarm.h perf/timer-alarm-posix.c perf/timer-alarm-win32.c

Carl Worth cworth at kemper.freedesktop.org
Thu Aug 31 11:38:32 PDT 2006


 perf/Makefile.am              |   12 ++++++------
 perf/cairo-perf-timer-posix.c |    6 +++---
 perf/cairo-perf-timer-win32.c |    6 +++---
 perf/cairo-perf-timer.h       |   17 ++++++++++++++---
 perf/cairo-perf.h             |   29 +++++++++--------------------
 perf/paint.c                  |    8 ++++----
 6 files changed, 39 insertions(+), 39 deletions(-)

New commits:
diff-tree 578b74473de4c70f907db38eac6f8e9039d72aa1 (from cf75da4842ca1191719e9f100c6af901a14dda5c)
Author: Carl Worth <cworth at cworth.org>
Date:   Thu Aug 31 11:31:21 2006 -0700

    perf: More consistency improvements for names.
    
    Rename bench_timer_t to cairo_perf_timer_t.
    Rename PERF_LOOP macros to CAIRO_PERF_LOOP
    Rename DECL_PERF_FUNC to CAIRO_PERF_DECL

diff --git a/perf/cairo-perf-timer-posix.c b/perf/cairo-perf-timer-posix.c
index 32486d1..2d91894 100644
--- a/perf/cairo-perf-timer-posix.c
+++ b/perf/cairo-perf-timer-posix.c
@@ -34,17 +34,17 @@
 /* timers */
 
 void
-timer_start (bench_timer_t *tr) {
+timer_start (cairo_perf_timer_t *tr) {
     gettimeofday (&tr->start, NULL);
 }
 
 void
-timer_stop (bench_timer_t *tr) {
+timer_stop (cairo_perf_timer_t *tr) {
     gettimeofday (&tr->stop, NULL);
 }
 
 double
-timer_elapsed (bench_timer_t *tr) {
+timer_elapsed (cairo_perf_timer_t *tr) {
     double d;
 
     d = tr->stop.tv_sec - tr->start.tv_sec;
diff --git a/perf/cairo-perf-timer-win32.c b/perf/cairo-perf-timer-win32.c
index e75f1d2..f3975fa 100644
--- a/perf/cairo-perf-timer-win32.c
+++ b/perf/cairo-perf-timer-win32.c
@@ -35,17 +35,17 @@
 /* timers */
 
 void
-timer_start (bench_timer_t *tr) {
+timer_start (cairo_perf_timer_t *tr) {
     QueryPerformanceCounter(&tr->start);
 }
 
 void
-timer_stop (bench_timer_t *tr) {
+timer_stop (cairo_perf_timer_t *tr) {
     QueryPerformanceCounter(&tr->stop);
 }
 
 double
-timer_elapsed (bench_timer_t *tr) {
+timer_elapsed (cairo_perf_timer_t *tr) {
     double d;
     LARGE_INTEGER freq;
 
diff --git a/perf/cairo-perf-timer.h b/perf/cairo-perf-timer.h
index 847c1ce..bea91c2 100644
--- a/perf/cairo-perf-timer.h
+++ b/perf/cairo-perf-timer.h
@@ -30,18 +30,29 @@
 
 #include "cairo-perf.h"
 
+typedef struct _cairo_perf_timer_t {
+#ifdef USE_WINAPI
+    LARGE_INTEGER start;
+    LARGE_INTEGER stop;
+#else
+    struct timeval start;
+    struct timeval stop;
+#endif
+    long count;
+} cairo_perf_timer_t;
+
 /* timers */
 
 extern int alarm_expired;
 
 void
-timer_start (bench_timer_t *tr);
+timer_start (cairo_perf_timer_t *tr);
 
 void
-timer_stop (bench_timer_t *tr);
+timer_stop (cairo_perf_timer_t *tr);
 
 double
-timer_elapsed (bench_timer_t *tr);
+timer_elapsed (cairo_perf_timer_t *tr);
 
 /* alarms */
 
diff --git a/perf/cairo-perf.h b/perf/cairo-perf.h
index be4ff88..5c06d32 100644
--- a/perf/cairo-perf.h
+++ b/perf/cairo-perf.h
@@ -30,17 +30,6 @@
 
 #include "cairo-boilerplate.h"
 
-typedef struct {
-#ifdef USE_WINAPI
-    LARGE_INTEGER start;
-    LARGE_INTEGER stop;
-#else
-    struct timeval start;
-    struct timeval stop;
-#endif
-    long count;
-} bench_timer_t;
-
 #include "cairo-perf-timer.h"
 
 extern int cairo_perf_duration;
@@ -52,35 +41,35 @@ extern int cairo_perf_alarm_expired;
  * out how to do an async timer.  On a quiet system, this doesn't
  * seem to significantly affect the results.
  */
-# define PERF_LOOP_INIT(timervar)  do {		\
+# define CAIRO_PERF_LOOP_INIT(timervar)  do {	\
     timervar.count = 0;				\
     timer_start (&(timervar));			\
     set_alarm (cairo_perf_duration);		\
     while (! cairo_perf_alarm_expired) {	\
         SleepEx(0, TRUE)
 #else
-# define PERF_LOOP_INIT(timervar)  do {		\
+# define CAIRO_PERF_LOOP_INIT(timervar)  do {	\
     timervar.count = 0;				\
     timer_start (&(timervar));			\
     set_alarm (cairo_perf_duration);		\
     while (! cairo_perf_alarm_expired) {
 #endif
 
-#define PERF_LOOP_FINI(timervar)		\
+#define CAIRO_PERF_LOOP_FINI(timervar)		\
     (timervar).count++;				\
     }						\
     timer_stop (&(timervar));			\
     } while (0)
 
-#define PERF_LOOP_RATE(timervar)		\
+#define CAIRO_PERF_LOOP_RATE(timervar)		\
     ((timervar).count) / timer_elapsed (&(timervar))
 
 typedef void (*cairo_perf_func_t) (cairo_t *cr, int width, int height);
 
-#define DECL_PERF_FUNC(func) void func (cairo_t *cr, int width, int height)
+#define CAIRO_PERF_DECL(func) void func (cairo_t *cr, int width, int height)
 
-DECL_PERF_FUNC (paint_setup);
-DECL_PERF_FUNC (paint_alpha_setup);
-DECL_PERF_FUNC (paint);
+CAIRO_PERF_DECL (paint_setup);
+CAIRO_PERF_DECL (paint_alpha_setup);
+CAIRO_PERF_DECL (paint);
 
 #endif
diff --git a/perf/paint.c b/perf/paint.c
index ce4da7d..d077c04 100644
--- a/perf/paint.c
+++ b/perf/paint.c
@@ -40,13 +40,13 @@ paint_alpha_setup (cairo_t *cr, int widt
 void
 paint (cairo_t *cr, int width, int height)
 {
-    bench_timer_t timer;
+    cairo_perf_timer_t timer;
 
-    PERF_LOOP_INIT (timer);
+    CAIRO_PERF_LOOP_INIT (timer);
     {
 	cairo_paint (cr);
     }
-    PERF_LOOP_FINI (timer);
+    CAIRO_PERF_LOOP_FINI (timer);
 
-    printf ("Rate: %g\n", PERF_LOOP_RATE (timer));
+    printf ("Rate: %g\n", CAIRO_PERF_LOOP_RATE (timer));
 }
diff-tree cf75da4842ca1191719e9f100c6af901a14dda5c (from 7ad6e941017e070bf7d93afba4de5c49cd1ff533)
Author: Carl Worth <cworth at cworth.org>
Date:   Thu Aug 31 11:25:04 2006 -0700

    perf: Rename timer-alarm files to cairo-perf-timer

diff --git a/perf/Makefile.am b/perf/Makefile.am
index d5412aa..35f56f8 100644
--- a/perf/Makefile.am
+++ b/perf/Makefile.am
@@ -13,16 +13,16 @@ INCLUDES =					\
 
 noinst_PROGRAMS = cairo-perf
 
-cairo_perf_SOURCES =	\
-	cairo-perf.c	\
-	cairo-perf.h	\
-	timer-alarm.h	\
+cairo_perf_SOURCES =		\
+	cairo-perf.c		\
+	cairo-perf.h		\
+	cairo-perf-timer.h	\
 	paint.c
 
 if CAIRO_HAS_WIN32_SURFACE
-cairo_perf_SOURCES += timer-alarm-win32.c
+cairo_perf_SOURCES += cairo-perf-timer-win32.c
 else
-cairo_perf_SOURCES += timer-alarm-posix.c
+cairo_perf_SOURCES += cairo-perf-timer-posix.c
 endif
 
 LDADD = $(top_builddir)/boilerplate/libcairoboilerplate.la \
diff --git a/perf/cairo-perf-timer-posix.c b/perf/cairo-perf-timer-posix.c
new file mode 100644
index 0000000..32486d1
--- /dev/null
+++ b/perf/cairo-perf-timer-posix.c
@@ -0,0 +1,70 @@
+/*
+ * Copyright © 2006 Mozilla Corporation
+ * Copyright © 2006 Red Hat, Inc.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software
+ * and its documentation for any purpose is hereby granted without
+ * fee, provided that the above copyright notice appear in all copies
+ * and that both that copyright notice and this permission notice
+ * appear in supporting documentation, and that the name of
+ * the authors not be used in advertising or publicity pertaining to
+ * distribution of the software without specific, written prior
+ * permission. The authors make no representations about the
+ * suitability of this software for any purpose.  It is provided "as
+ * is" without express or implied warranty.
+ *
+ * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
+ * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL,
+ * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
+ * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+ * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * Authors: Vladimir Vukicevic <vladimir at pobox.com>
+ *          Carl Worth <cworth at cworth.org>
+ */
+
+#include <signal.h>
+#include <sys/time.h>
+#include <unistd.h>
+
+#include "cairo-perf.h"
+
+/* timers */
+
+void
+timer_start (bench_timer_t *tr) {
+    gettimeofday (&tr->start, NULL);
+}
+
+void
+timer_stop (bench_timer_t *tr) {
+    gettimeofday (&tr->stop, NULL);
+}
+
+double
+timer_elapsed (bench_timer_t *tr) {
+    double d;
+
+    d = tr->stop.tv_sec - tr->start.tv_sec;
+    d += (tr->stop.tv_usec - tr->start.tv_usec) / 1000000.0;
+
+    return d;
+}
+
+/* alarms */
+
+void
+alarm_handler (int signal) {
+    if (signal == SIGALRM) {
+        cairo_perf_alarm_expired = 1;
+    }
+}
+
+void
+set_alarm (int seconds) {
+    cairo_perf_alarm_expired = 0;
+    signal (SIGALRM, alarm_handler);
+    alarm (seconds);
+}
diff --git a/perf/cairo-perf-timer-win32.c b/perf/cairo-perf-timer-win32.c
new file mode 100644
index 0000000..e75f1d2
--- /dev/null
+++ b/perf/cairo-perf-timer-win32.c
@@ -0,0 +1,76 @@
+/*
+ * Copyright © 2006 Mozilla Corporation
+ * Copyright © 2006 Red Hat, Inc.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software
+ * and its documentation for any purpose is hereby granted without
+ * fee, provided that the above copyright notice appear in all copies
+ * and that both that copyright notice and this permission notice
+ * appear in supporting documentation, and that the name of
+ * the authors not be used in advertising or publicity pertaining to
+ * distribution of the software without specific, written prior
+ * permission. The authors make no representations about the
+ * suitability of this software for any purpose.  It is provided "as
+ * is" without express or implied warranty.
+ *
+ * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
+ * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL,
+ * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
+ * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+ * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * Authors: Vladimir Vukicevic <vladimir at pobox.com>
+ *          Carl Worth <cworth at cworth.org>
+ */
+
+#define USE_WINAPI
+
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+
+#include "cairo-perf.h"
+
+/* timers */
+
+void
+timer_start (bench_timer_t *tr) {
+    QueryPerformanceCounter(&tr->start);
+}
+
+void
+timer_stop (bench_timer_t *tr) {
+    QueryPerformanceCounter(&tr->stop);
+}
+
+double
+timer_elapsed (bench_timer_t *tr) {
+    double d;
+    LARGE_INTEGER freq;
+
+    QueryPerformanceFrequency(&freq);
+
+    d = (tr->stop.QuadPart - tr->start.QuadPart) / (double) freq.QuadPart;
+    return d;
+}
+
+/* alarms */
+
+void CALLBACK
+alarm_handler (void *closure, DWORD dwTimerLowValue, DWORD dwTimerHighValue) {
+    cairo_perf_alarm_expired = 1;
+}
+
+HANDLE hTimer = NULL;
+void
+set_alarm (int seconds) {
+    if (hTimer == NULL)
+        hTimer = CreateWaitableTimer(NULL, TRUE, NULL);
+    cairo_perf_alarm_expired = 0;
+
+    LARGE_INTEGER expTime;
+    expTime.QuadPart = - (seconds * 10000000);
+    if (!SetWaitableTimer (hTimer, &expTime, 0, alarm_handler, &cairo_perf_alarm_expired, FALSE))
+        fprintf (stderr, "SetWaitableTimer failed!\n");
+}
diff --git a/perf/cairo-perf-timer.h b/perf/cairo-perf-timer.h
new file mode 100644
index 0000000..847c1ce
--- /dev/null
+++ b/perf/cairo-perf-timer.h
@@ -0,0 +1,54 @@
+/*
+ * Copyright © 2006 Mozilla Corporation
+ * Copyright © 2006 Red Hat, Inc.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software
+ * and its documentation for any purpose is hereby granted without
+ * fee, provided that the above copyright notice appear in all copies
+ * and that both that copyright notice and this permission notice
+ * appear in supporting documentation, and that the name of
+ * the authors not be used in advertising or publicity pertaining to
+ * distribution of the software without specific, written prior
+ * permission. The authors make no representations about the
+ * suitability of this software for any purpose.  It is provided "as
+ * is" without express or implied warranty.
+ *
+ * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
+ * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL,
+ * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
+ * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+ * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * Authors: Vladimir Vukicevic <vladimir at pobox.com>
+ *          Carl Worth <cworth at cworth.org>
+ */
+
+#ifndef _TIMER_ALARM_H_
+#define _TIMER_ALARM_H_
+
+#include "cairo-perf.h"
+
+/* timers */
+
+extern int alarm_expired;
+
+void
+timer_start (bench_timer_t *tr);
+
+void
+timer_stop (bench_timer_t *tr);
+
+double
+timer_elapsed (bench_timer_t *tr);
+
+/* alarms */
+
+void
+alarm_handler (int signal);
+
+void
+set_alarm (int seconds);
+
+#endif
diff --git a/perf/cairo-perf.h b/perf/cairo-perf.h
index bea7494..be4ff88 100644
--- a/perf/cairo-perf.h
+++ b/perf/cairo-perf.h
@@ -41,7 +41,7 @@ typedef struct {
     long count;
 } bench_timer_t;
 
-#include "timer-alarm.h"
+#include "cairo-perf-timer.h"
 
 extern int cairo_perf_duration;
 extern int cairo_perf_alarm_expired;
diff --git a/perf/timer-alarm-posix.c b/perf/timer-alarm-posix.c
deleted file mode 100644
index 32486d1..0000000
--- a/perf/timer-alarm-posix.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Copyright © 2006 Mozilla Corporation
- * Copyright © 2006 Red Hat, Inc.
- *
- * Permission to use, copy, modify, distribute, and sell this software
- * and its documentation for any purpose is hereby granted without
- * fee, provided that the above copyright notice appear in all copies
- * and that both that copyright notice and this permission notice
- * appear in supporting documentation, and that the name of
- * the authors not be used in advertising or publicity pertaining to
- * distribution of the software without specific, written prior
- * permission. The authors make no representations about the
- * suitability of this software for any purpose.  It is provided "as
- * is" without express or implied warranty.
- *
- * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
- * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL,
- * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
- * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
- * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Authors: Vladimir Vukicevic <vladimir at pobox.com>
- *          Carl Worth <cworth at cworth.org>
- */
-
-#include <signal.h>
-#include <sys/time.h>
-#include <unistd.h>
-
-#include "cairo-perf.h"
-
-/* timers */
-
-void
-timer_start (bench_timer_t *tr) {
-    gettimeofday (&tr->start, NULL);
-}
-
-void
-timer_stop (bench_timer_t *tr) {
-    gettimeofday (&tr->stop, NULL);
-}
-
-double
-timer_elapsed (bench_timer_t *tr) {
-    double d;
-
-    d = tr->stop.tv_sec - tr->start.tv_sec;
-    d += (tr->stop.tv_usec - tr->start.tv_usec) / 1000000.0;
-
-    return d;
-}
-
-/* alarms */
-
-void
-alarm_handler (int signal) {
-    if (signal == SIGALRM) {
-        cairo_perf_alarm_expired = 1;
-    }
-}
-
-void
-set_alarm (int seconds) {
-    cairo_perf_alarm_expired = 0;
-    signal (SIGALRM, alarm_handler);
-    alarm (seconds);
-}
diff --git a/perf/timer-alarm-win32.c b/perf/timer-alarm-win32.c
deleted file mode 100644
index e75f1d2..0000000
--- a/perf/timer-alarm-win32.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright © 2006 Mozilla Corporation
- * Copyright © 2006 Red Hat, Inc.
- *
- * Permission to use, copy, modify, distribute, and sell this software
- * and its documentation for any purpose is hereby granted without
- * fee, provided that the above copyright notice appear in all copies
- * and that both that copyright notice and this permission notice
- * appear in supporting documentation, and that the name of
- * the authors not be used in advertising or publicity pertaining to
- * distribution of the software without specific, written prior
- * permission. The authors make no representations about the
- * suitability of this software for any purpose.  It is provided "as
- * is" without express or implied warranty.
- *
- * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
- * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL,
- * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
- * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
- * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Authors: Vladimir Vukicevic <vladimir at pobox.com>
- *          Carl Worth <cworth at cworth.org>
- */
-
-#define USE_WINAPI
-
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-
-#include "cairo-perf.h"
-
-/* timers */
-
-void
-timer_start (bench_timer_t *tr) {
-    QueryPerformanceCounter(&tr->start);
-}
-
-void
-timer_stop (bench_timer_t *tr) {
-    QueryPerformanceCounter(&tr->stop);
-}
-
-double
-timer_elapsed (bench_timer_t *tr) {
-    double d;
-    LARGE_INTEGER freq;
-
-    QueryPerformanceFrequency(&freq);
-
-    d = (tr->stop.QuadPart - tr->start.QuadPart) / (double) freq.QuadPart;
-    return d;
-}
-
-/* alarms */
-
-void CALLBACK
-alarm_handler (void *closure, DWORD dwTimerLowValue, DWORD dwTimerHighValue) {
-    cairo_perf_alarm_expired = 1;
-}
-
-HANDLE hTimer = NULL;
-void
-set_alarm (int seconds) {
-    if (hTimer == NULL)
-        hTimer = CreateWaitableTimer(NULL, TRUE, NULL);
-    cairo_perf_alarm_expired = 0;
-
-    LARGE_INTEGER expTime;
-    expTime.QuadPart = - (seconds * 10000000);
-    if (!SetWaitableTimer (hTimer, &expTime, 0, alarm_handler, &cairo_perf_alarm_expired, FALSE))
-        fprintf (stderr, "SetWaitableTimer failed!\n");
-}
diff --git a/perf/timer-alarm.h b/perf/timer-alarm.h
deleted file mode 100644
index 847c1ce..0000000
--- a/perf/timer-alarm.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright © 2006 Mozilla Corporation
- * Copyright © 2006 Red Hat, Inc.
- *
- * Permission to use, copy, modify, distribute, and sell this software
- * and its documentation for any purpose is hereby granted without
- * fee, provided that the above copyright notice appear in all copies
- * and that both that copyright notice and this permission notice
- * appear in supporting documentation, and that the name of
- * the authors not be used in advertising or publicity pertaining to
- * distribution of the software without specific, written prior
- * permission. The authors make no representations about the
- * suitability of this software for any purpose.  It is provided "as
- * is" without express or implied warranty.
- *
- * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
- * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL,
- * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
- * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
- * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Authors: Vladimir Vukicevic <vladimir at pobox.com>
- *          Carl Worth <cworth at cworth.org>
- */
-
-#ifndef _TIMER_ALARM_H_
-#define _TIMER_ALARM_H_
-
-#include "cairo-perf.h"
-
-/* timers */
-
-extern int alarm_expired;
-
-void
-timer_start (bench_timer_t *tr);
-
-void
-timer_stop (bench_timer_t *tr);
-
-double
-timer_elapsed (bench_timer_t *tr);
-
-/* alarms */
-
-void
-alarm_handler (int signal);
-
-void
-set_alarm (int seconds);
-
-#endif


More information about the cairo-commit mailing list