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

Re: [MacPerl] Yet again, I post a question



On Fri, May 19, 2000 at 10:44:05AM -0500, Jay Bedsole wrote:
> > Are there any pre-built features in MacPerl that allow me
> > to get uptime/total uptime?
> 
> What you're really asking is, "are there any pre-built
> features in the MacOS to support uptime statistics".
> 
> I'm not aware of any, but this seems like it would be easy to
> create. Just make a little MacPerl droplet to read the system
> clock and save it to a file. Put this droplet into your
> startup folder so that it runs every time the computer starts
> up, thus providing a timestamp of the last restart. Then you
> just need another MacPerl script to read the timestamp from
> the file and compare to the current time. Seems like it
> should work... anyone see an obvious problem?

I wonder if TattleTale provides the total time the Macintosh has been
up...  I'll have to look into it if I still have TattleTale.

If so, then the OS is probably keeping that info somewhere and you just
need a way to get at it in MacPerl.

Ronald

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org