1 '\" te 2 .\" Copyright (c) 2000, Sun Microsystems, Inc. 3 .\" All Rights Reserved 4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. 5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. 6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] 7 .TH DDI_GET_TIME 9F "Feb 18, 1998" 8 .SH NAME 9 ddi_get_time \- returns the current time in seconds 10 .SH SYNOPSIS 11 .LP 12 .nf 13 #include <sys/types.h> 14 #include <sys/ddi.h> 15 #include <sys/sunddi.h> 16 17 18 19 \fBtime_t\fR \fBddi_get_time\fR(\fBvoid\fR); 20 .fi 21 22 .SH INTERFACE LEVEL 23 .sp 24 .LP 25 Solaris DDI specific (Solaris DDI). 26 .SH DESCRIPTION 27 .sp 28 .LP 29 \fBddi_get_time()\fR returns the current time in seconds since 00:00:00 UTC, 30 January 1, 1970. This value can be used to set of wait or expiration intervals. 31 .SH RETURN VALUES 32 .sp 33 .LP 34 \fBddi_get_time()\fR returns the time in seconds. 35 .SH CONTEXT 36 .sp 37 .LP 38 This routine can be called from any context. 39 .SH SEE ALSO 40 .sp 41 .LP 42 \fBddi_get_lbolt\fR(9F), \fBdrv_getparm\fR(9F), \fBdrv_usectohz\fR(9F) 43 .sp 44 .LP 45 \fIWriting Device Drivers\fR 46 .sp 47 .LP 48 \fISTREAMS Programming Guide\fR