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