err.D_IDENT_UNDEF.timespent.d revision 178477
170583Sobrien/*
2178628Smarcel * CDDL HEADER START
370583Sobrien *
470583Sobrien * The contents of this file are subject to the terms of the
570583Sobrien * Common Development and Distribution License (the "License").
670583Sobrien * You may not use this file except in compliance with the License.
770583Sobrien *
8178628Smarcel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
970583Sobrien * or http://www.opensolaris.org/os/licensing.
1070583Sobrien * See the License for the specific language governing permissions
1170583Sobrien * and limitations under the License.
1270583Sobrien *
1370583Sobrien * When distributing Covered Code, include this CDDL HEADER in each
1470583Sobrien * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15178628Smarcel * If applicable, add the following below this CDDL HEADER, with the
16178628Smarcel * fields enclosed by brackets "[]" replaced with your own identifying
17178628Smarcel * information: Portions Copyright [yyyy] [name of copyright owner]
18178628Smarcel *
19178628Smarcel * CDDL HEADER END
20178628Smarcel */
21178628Smarcel
22178628Smarcel/*
23178628Smarcel * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24178628Smarcel * Use is subject to license terms.
2570583Sobrien */
2670583Sobrien
27178628Smarcel#pragma	ident	"%Z%%M%	%I%	%E% SMI"
28178628Smarcel
29178628Smarcel/*
3070583Sobrien * ASSERTION:
3170583Sobrien *	Calculate timestamp between BEGIN and END.
32178628Smarcel *
33192109Sraj * SECTION: dtrace Provider
34178628Smarcel *
35222813Sattilio */
36212170Sgrehan
37212170Sgrehan
38178628Smarcel#pragma D option quiet
3970583Sobrien
40178628SmarcelEND
4176078Sjhb{
4270583Sobrien	total = timestamp - start;
43194933Sjeff}
44194933Sjeff
45194933SjeffBEGIN
46194933Sjeff{
47194933Sjeff	start = timestamp;
48194933Sjeff	exit(0);
49194933Sjeff}
50178628Smarcel