On 2006-12-14, Yakov Lerner <[EMAIL PROTECTED]> wrote:
> On 12/13/06, Gary Johnson <[EMAIL PROTECTED]> wrote:
> > On 2006-12-03, Yakov Lerner <[EMAIL PROTECTED]> wrote:
> >
> > > You can try 'gvim.exe -V20/tmp/log' to identity points of slowness.
> > > You might need timestamps in the logfile for that. To add timestamps,
> > > you can try to redirect the logfile to the named pipe and the to
> > > utility which adds  timestamps.
> >
> > What utility that adds timestamps?
> 
> I don't know if you can call the [1] and [2] below 'utilities', but
> they copy standard input to standard output, adding
> the timestamp to microsecond resolution to each line.
> [1] is in perl, [2] is in C. Worksforme.

Thanks!  timestamp.c works great, but I had to download the 
Time::HiRes module for timestamp.pl and now I can't get timestamp.pl 
to find it.  (I don't use Perl very often.)  I put the module here:

    /home/garyjohn/lib/perl/Time/HiRes.pm

and added this line,

    use lib ("/home/garyjohn/lib/perl");

to timestamp.pl, but when I use timestamp.pl I get this message:

    Can't locate loadable object for module Time::HiRes in @INC (@INC contains: 
/home/garyjohn/lib/perl /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 
/usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at 
./timestamp.pl line 7
    BEGIN failed--compilation aborted at ./timestamp.pl line 7.

It would be nice to have the Perl version working so that I don't
have to compile the C version for every OS I use, but it's not a big
deal if the solution doesn't jump out at you.

Thanks again,
Gary

-- 
Gary Johnson                 | Agilent Technologies
[EMAIL PROTECTED]     | Wireless Division
                             | Spokane, Washington, USA

Reply via email to