xref: /illumos-gate/usr/src/cmd/sendmail/src/timers.h (revision 2a8bcb4e)
1 /*
2  * Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers.
3  *	All rights reserved.
4  *
5  * By using this file, you agree to the terms and conditions set
6  * forth in the LICENSE file which can be found at the top level of
7  * the sendmail distribution.
8  *
9  *	$Id: timers.h,v 8.6 2001/04/03 01:53:18 gshapiro Exp $
10  *
11  * Contributed by Exactis.com, Inc.
12  *
13  */
14 
15 #ifndef TIMERS_H
16 #define TIMERS_H 1
17 
18 #define MAXTIMERSTACK	20		/* maximum timer depth */
19 
20 #define TIMER	struct _timer
21 
22 TIMER
23 {
24 	long	ti_wall_sec;		/* wall clock seconds */
25 	long	ti_wall_usec;		/* ... microseconds */
26 	long	ti_cpu_sec;		/* cpu time seconds */
27 	long	ti_cpu_usec;		/* ... microseconds */
28 };
29 
30 extern void	pushtimer __P((TIMER *));
31 extern void	poptimer __P((TIMER *));
32 extern char	*strtimer __P((TIMER *));
33 #endif /* ! TIMERS_H */
34