Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ames!haven!uvaarpa!mmdf From: marc@athena.mit.edu (Marc Horowitz) Newsgroups: comp.lang.perl Subject: gettimeofday Message-ID: <1990Nov26.042245.29893@uvaarpa.Virginia.EDU> Date: 26 Nov 90 04:22:45 GMT Sender: mmdf@uvaarpa.Virginia.EDU (Uvaarpa Mail System) Reply-To: marc@mit.edu Organization: The Internet Lines: 11 Feature request: Is there a reason gettimeofday isn't in perl? It exists in both BSD and SYSV, the PC can approximate it, although with less precision, and it's hard to do without a primitive (syscall is "hard"). I can't imagine how it could break existing scripts. Just define gettimeofday() which returns ($tv_sec,$tv_usec). Or make it really spiffy and have it return that in a list context, and $tv_sec+$tv_usec/1000000 in a scalar context. Marc