Re: for review: Elapse.pm

2001-12-04 Thread Scott R. Godin

In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] (William R Ward) wrote:

 [EMAIL PROTECTED] (Scott R. Godin) writes:
  Yes, I've been thinking of re-doing it as a Time:: module, and that _is_ 
  a good idea. I'm still learning how to wrap all this stuff up in 
  something that 'make install' can handle. 
 
 Try this...
 
 h2xs -X -n Time::Elapsed
 
 This will create a sample Makefile.PL, test.t, MANIFEST, etc. just
 like the modules in CPAN.  Plug your code into the Elapsed.pm that
 they provice, complete the POD, and create some test cases in test.t
 and then when you're ready to go, try:
 
 perl Makefile.PL
 make
 make test
 
 If that works, you can then do:
 
 make tardist
 
 to create the Time-Elapsed-0-01.tar.gz file, ready to upload.

That seems.. almost too easy. :-)

Thanks, I'll try that. (after I read up on the docs some more; I still 
want to learn a bit about the surrounding process too.)

print pack H*, 4a75737420416e6f74686572204d61635065726c204861636b65722c0d;
-- 
Scott R. Godin| e-mail : [EMAIL PROTECTED]
Laughing Dragon Services  |web : http://www.webdragon.net/
It is not necessary to cc: me via e-mail unless you mean to speak off-group.
I read these via nntp.perl.org, so as to get the stuff OUT of my mailbox. :-)



Re: for review: Elapse.pm

2001-12-03 Thread Mark Stosberg

Scott R. Godin wrote:
 
 In article [EMAIL PROTECTED],
  [EMAIL PROTECTED] (Dominique Dumont) wrote:
 
  [EMAIL PROTECTED] (Scott R. Godin) writes:
 
 Thanks. First seriously constructive response I've gotten. Was beginning
 to think no one reads this list anymore :)
 
   just a bit of silliness I conconcted while reading Damian's OOP... Your
   thoughtful appraisal and suggestions would be most welcome. I'm still
   experimenting with it off and on. :-)
 
  This module could be useful. I don't see any reason to not upload it.
  Except that the name would be better as Time::Elapsed (which would fit
  with the other Time::* modules).

Hello Scott,

It seems to me this module covers the same problem space as the
Benchmark module, as it's used like this:

 use Benchmark;
 $t0 = new Benchmark;
 # ... your code here ...
 $t1 = new Benchmark;
 $td = timediff($t1, $t0);
 print the code took:,timestr($td),\n;

If I recall, your module took a slightly different approach by reporting
the time it takes for a variable to change. 

  -mark


 . . . . . . . . . . . . . . . . . . . . . . . . . .
   Mark Stosberg  Principal Developer  
   [EMAIL PROTECTED]   Summersault, LLC 
   v: 765-939-9301 ext 223website development  
 . . . . . http://www.summersault.com/ . . . . . . .