develooper Front page | perl.qpsmtpd | Postings from August 2007

Re: Transaction ID suggestions

Thread Previous | Thread Next
From:
Peter J. Holzer
Date:
August 25, 2007 08:28
Subject:
Re: Transaction ID suggestions
Message ID:
20070825150055.GC6257@hjp.at
On 2007-08-25 10:41:44 -0400, Guy Hulbert wrote:
> On Sat, 2007-08-25 at 10:15 -0400, Matt Sergeant wrote:
> > On 24-Aug-07, at 6:40 PM, David Sparks wrote:
> > 
> > Yeah, we use HiRes::time() . ".$$" and we don't get any file stomping
> > (and we're doing millions of emails/day).
> 
> Could you clarify?  There is no HiRes module in CPAN.  Here's what I
> see:
> 
>         DateTime::HiRes
>         Rose::DB::Object::Metadata::Column::Epoch::HiRes
>         Time::HiRes
>         Time::HiRes::Value
> 
> I've been using Time::HiRes, which does not have a time() call but ships
> in the debian perl-modules package.

It has. If you use it like this:

use Time::HiRes qw(time);

it will replace time with a function which returns the timestamp as a
floating point number. I use that all the time for benchmarking.

(Hmm, I see that it is missing from the synopsis but documented in the
text of the POD)

	hp

-- 
   _  | Peter J. Holzer    | I know I'd be respectful of a pirate 
|_|_) | Sysadmin WSR       | with an emu on his shoulder.
| |   | hjp@hjp.at         |
__/   | http://www.hjp.at/ |	-- Sam in "Freefall"


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About