⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gettime.3

📁 tcl是工具命令语言
💻 3
字号:
'\"'\" Copyright (c) 2001 by Kevin B. Kenny.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" RCS: @(#) $Id$'\" .so man.macros.TH Tcl_GetTime 3 8.4 Tcl "Tcl Library Procedures".BS.SH NAMETcl_GetTime \- get date and time.SH SYNOPSIS.nf\fB#include <tcl.h>\fR.sp\fBTcl_GetTime\fR(\fI timePtr \fR).SH ARGUMENTS.AS "Tcl_Time *" timePtr.AP "Tcl_Time *" timePtr outPoints to memory in which to store the date and time information..BE.SH DESCRIPTION.PPThe \fBTcl_GetTime\fR function retrieves the current time as a\fITcl_Time\fR structure in memory the caller provides.  Thisstructure has the following definition:.CStypedef struct Tcl_Time {    long sec;    long usec;} Tcl_Time;.CE.PPOn return, the \fIsec\fR member of the structure is filled in with thenumber of seconds that have elapsed since the \fIepoch:\fR the epochis the point in time of 00:00 UTC, 1 January 1970.  This number does\fInot\fR count leap seconds \- an interval of one day advances it by86400 seconds regardless of whether a leap second has been inserted..PPThe \fIusec\fR member of the structure is filled in with the number ofmicroseconds that have elapsed since the start of the seconddesignated by \fIsec\fR.  The Tcl library makes every effort to keepthis number as precise as possible, subject to the limitations of thecomputer system.  On multiprocessor variants of Windows, this numbermay be limited to the 10- or 20-ms granularity of the system clock.(On single-processor Windows systems, the \fIusec\fR field is derivedfrom a performance counter and is highly precise.).SH "SEE ALSO"clock.SH KEYWORDSdate, time

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -