Is it a system call ? if yess can I use that in my perl code from syscall function ? , or is there any perl equivalent ?
It would be even ok if we had any command line equivalent as well so that we can use even in any shell scripts too..
Thanks,
Nikhil
On 10/19/05, Fintan Ryan <[EMAIL PROTECTED]> wrote:
Hi,
[ snipped opensolaris-discuss from the cc list ]
< Can someone please tell me what could be the source of information to know
< the machine's bootime for uptime command other than to know it from
< utmpx/wtmpx files.
< something from init ?? but how
What exactly do you mean by boottime? As in time from initial boot?
gethrtime(3C) should suffice, as it sets its time from hardware
on boot. Please take note of the notes section in the manapage though.
- Fintan
--
[EMAIL PROTECTED] http://blogs.sun.com/fintanr
@dub03 http://www.opensolaris.org
_______________________________________________ opensolaris-code mailing list [email protected] https://opensolaris.org:444/mailman/listinfo/opensolaris-code
