For Programmers: Free Programming Magazines  


Home > Archive > AWK > July 2006 > any buitin time function mawk?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author any buitin time function mawk?
Timoteo

2006-07-05, 7:56 am

I have read the mawk manual but i haven't find any mention about built time
function in mawk.
how do i manage 'time' from within mawk?


Harlan Grove

2006-07-05, 6:56 pm

Timoteo wrote...
>I have read the mawk manual but i haven't find any mention about built time
>function in mawk.
>how do i manage 'time' from within mawk?


You could add a time function to mawk's source code and build your own
extended binary. Or you could call the outside data command and pipe
its output through getline. There are no other alternatives if you use
mawk. If you want an awk variant with time functions, use gawk.

John DuBois

2006-07-05, 6:56 pm

In article <w9Oqg.12880$yg6.3444@tornado.fastwebnet.it>,
Timoteo <mpenn@tin.it> wrote:
>I have read the mawk manual but i haven't find any mention about built time
>function in mawk.
>how do i manage 'time' from within mawk?


As a side effect of the way it's implemented,
srand() returns the epoch time.

John
--
John DuBois spcecdt@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com