1
.TH TIME 3am "Aug 08 2012" "Free Software Foundation" "GNU Awk Extension Modules"
3
time \- time functions for gawk
15
extension adds two functions named
22
This function returns the number of seconds since the Epoch
23
as a floating-point value. It should have subsecond precision.
24
It returns \-1 upon error and sets
26
to indicate the problem.
29
This function attempts to sleep for the given amount of seconds, which
30
may include a fractional portion.
33
is negative, or the attempt to sleep fails,
34
then it returns \-1 and sets
36
Otherwise, the function should return 0 after sleeping
37
for the indicated amount of time.
45
printf "It is now %g seconds since the Epoch\en", gettimeofday()
46
printf "Pausing for a while... " ; sleep(2.5) ; print "done"
50
.IR "GAWK: Effective AWK Programming" ,
65
.BR arnold@skeeve.com .
66
.SH COPYING PERMISSIONS
68
Free Software Foundation, Inc.
70
Permission is granted to make and distribute verbatim copies of
71
this manual page provided the copyright notice and this permission
72
notice are preserved on all copies.
74
Permission is granted to process this file through troff and print the
75
results, provided the printed document carries copying permission
76
notice identical to this one except for the removal of this paragraph
77
(this paragraph not being relevant to the printed manual page).
80
Permission is granted to copy and distribute modified versions of this
81
manual page under the conditions for verbatim copying, provided that
82
the entire resulting derived work is distributed under the terms of a
83
permission notice identical to this one.
85
Permission is granted to copy and distribute translations of this
86
manual page into another language, under the above conditions for
87
modified versions, except that this permission notice may be stated in
88
a translation approved by the Foundation.