stop & detach driver when exiting due to -T/--temporary flag
[jack.git] / jack / statistics.h
blobc83466273a147069660f1cd0c9f7638b7f4371ac
1 /*
2 * Copyright (C) 2004 Rui Nuno Capela, Lee Revell
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public License
6 * as published by the Free Software Foundation; either version 2.1
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this program; if not, write to the Free
16 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17 * 02111-1307, USA.
21 #ifndef __statistics_h__
22 #define __statistics_h__
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
28 #include <jack/types.h>
30 /**
31 * @return the maximum delay reported by the backend since
32 * startup or reset. When compared to the period size in usecs, this
33 * can be used to estimate the ideal period size for a given setup.
35 float jack_get_max_delayed_usecs (jack_client_t *client);
37 /**
38 * @return the delay in microseconds due to the most recent XRUN
39 * occurrence. This probably only makes sense when called from a @ref
40 * JackXRunCallback defined using jack_set_xrun_callback().
42 float jack_get_xrun_delayed_usecs (jack_client_t *client);
44 /**
45 * Reset the maximum delay counter. This would be useful
46 * to estimate the effect that a change to the configuration of a running
47 * system (e.g. toggling kernel preemption) has on the delay
48 * experienced by JACK, without having to restart the JACK engine.
50 void jack_reset_max_delayed_usecs (jack_client_t *client);
52 #ifdef __cplusplus
54 #endif
56 #endif /* __statistics_h__ */