koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Koha-devel] New module dependency?


From: paul POULAIN
Subject: Re: [Koha-devel] New module dependency?
Date: Tue Nov 11 23:43:07 2003
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630

Mike Mylonas wrote:
On Sat, 2003-11-08 at 09:10, MJ Ray wrote:
  
When trying to rebuildnonmarc.pl I got the following output:

$ perl -I../../modules rebuildnonmarc.pl
Can't locate Time/HiRes.pm in @INC (@INC contains: ../../modules 
/usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 
/usr/local/lib/site_perl .) at rebuildnonmarc.pl line 12.

Should I add a test for Time::HiRes to the installer?
    

Let me know if we want this module added to the CPAN Bundle? (Haven't
seen any answer to the use of Time::HiRes, or MJ's patch using time().)
  
perldoc -f time :
Returns the number of non-leap seconds since whatever time the
               system considers to be the epoch (that's 00:00:00, January 1,
               1904 for Mac OS, and 00:00:00 UTC, January 1, 1970 for most
               other systems).  Suitable for feeding to "gmtime" and "local-
               time".

               For measuring time in better granularity than one second, you
               may use either the Time::HiRes module (from CPAN, and starting
               from Perl 5.8 part of the standard distribution), or if you
               have gettimeofday(2), you may be able to use the "syscall"
               interface of Perl.  See perlfaq8 for details.

The only reason why I use Time::Hires is that i wanted more than second granularity. If you think second is enough (& I think it is for large DB), ok to remove Time::Hires
-- 
Paul POULAIN
Consultant indépendant en logiciels libres
responsable francophone de koha (SIGB libre http://www.koha-fr.org)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]