Skip Menu |

This queue is for tickets about the Time-TimeTick CPAN distribution.

Report information
The Basics
Id: 12940
Status: open
Worked: 10 min
Priority: 0/
Queue: Time-TimeTick

People
Owner: Nobody in particular
Requestors: robert.fish [...] i-tcs.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.02
Fixed in: (no value)



Subject: Zero time from timetick
Hi, I'm running the following script. #!/usr/bin/perl use Time::HiRes qw(gettimeofday sleep usleep time); use Time::TimeTick; my $bufferlen=32000; print "time == " . Time::HiRes::time . "\n"; print "timeof day == " . Time::HiRes::gettimeofday . "\n"; my $qmgr = "HAQM1S"; timetick("Pre MQCONN"); timetick("Post MQCONN"); print "CONN: $Reason\n"; timetick("Postprint MQCONN"); exit 0; and get output time == 1116922027.70559 timeof day == 1116922027.70576 CONN: 0.0000 Timeticker for test.pl starting 0.0000 Pre MQCONN 0.0000 Post MQCONN 0.0000 Postprint MQCONN 0.0000 Timeticker for test.pl finishing. Where do I go wrong? (I did a similar test over a period of 14 seconds and got the same 0 time.) Environment is SUSE linux, on zSeries Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Sep 27 2003 06:19:49 @INC: /usr/lib/perl5/5.8.0/s390-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/s390-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .
There was a bug in 0.02 that could have accounted for this. Would you run it with 0.03 and let me know the results please? Thanks! peter@psdt.com [guest - Tue May 24 04:14:49 2005]: Show quoted text
> Hi, I'm running the following script. > #!/usr/bin/perl > use Time::HiRes qw(gettimeofday sleep usleep time); > use Time::TimeTick; > my $bufferlen=32000; > print "time == " . Time::HiRes::time . "\n"; > print "timeof day == " . Time::HiRes::gettimeofday . "\n"; > my $qmgr = "HAQM1S"; > timetick("Pre > MQCONN"); > timetick("Post > MQCONN"); > print "CONN: $Reason\n"; > timetick("Postprint > MQCONN"); > exit 0; > and get output > time == 1116922027.70559 > timeof day == 1116922027.70576 > CONN: > 0.0000 Timeticker for test.pl starting > 0.0000 Pre MQCONN > 0.0000 Post MQCONN > 0.0000 Postprint MQCONN > 0.0000 Timeticker for test.pl finishing. > Where do I go wrong? (I did a similar test over a period of 14 seconds > and got the same 0 time.) > > Environment is SUSE linux, on zSeries > > Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES > PERL_IMPLICIT_CONTEXT > Built under linux > Compiled at Sep 27 2003 06:19:49 > @INC: > /usr/lib/perl5/5.8.0/s390-linux-thread-multi > /usr/lib/perl5/5.8.0 > /usr/lib/perl5/site_perl/5.8.0/s390-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.0 > /usr/lib/perl5/site_perl > .