[rrd-users] Re: More PERL Help Needed : Time:HiRes ?'s
steve rader
rader at ginseng.hep.wisc.edu
Tue Sep 18 22:01:45 MEST 2001
> From: "Schroeder, Dennis"
> I downloaded "Time-HiRes-01.20.tar.gz", unzipped it into a folder, but I
> don't know enough about PERL to know what to do with it.
>
> Do I just copy the "hires.pm" file into the directory where my other .pm
> files are?
>
> Do I have to "make" something?
see http://nrg.hep.wisc.edu/Time-HiRes.html
> How do I capture a time stamp in (ms)?
you don't really want time stamps, do you? you can calc elapsed
msecs like so...
$t_start = [Time::HiRes::gettimeofday];
# ...do query here...
$t_end = [Time::HiRes::gettimeofday];
$elapsed = Time::HiRes::tv_interval ($t_start, $t_end);
$msecs = int($elapsed*1000);
later
steve
- - -
systems & network guy
high energy physics
university of wisconsin
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list