summaryrefslogtreecommitdiff
path: root/perf/timers.h
blob: d00d6cc611f4f5522637cc90c834d5f98661da27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <gtk/gtkwidget.h>

typedef enum
{
  TIMER_REPORT_WIDGET_CREATION,
  TIMER_REPORT_WIDGET_SHOW,
  TIMER_REPORT_WIDGET_DESTRUCTION
} TimerReport;

typedef GtkWidget *(* TimerWidgetCreateFunc) (gpointer user_data);

typedef void (* TimerReportFunc) (TimerReport report, gdouble elapsed, gpointer user_data);

void timer_time_widget (TimerWidgetCreateFunc create_func,
			TimerReportFunc       report_func,
			gpointer              user_data);