C
Crom
Is there a portable way of obtaining the start up and/or elapsed time
since start (which I suppose could be calculated given the start time,
so no biggy, just need the start time.)
I've been searching exhaustively in both google groups without many
leads. My target systems are Linux and Freebsd, though a portable
solution would be nice, but not necessary.
So far the only way I could find is parsing output from the ps command,
but it's a little different from system, and some show the time as Tue01
(to indicate something started @ 1 o'clock on tuesday, which is a dead
end in the sense of raw time value hunting, if you know what I mean; in
others words you can't derive ac actually date/time from a value like
that!
Any help in this would greatly be appreciated.
since start (which I suppose could be calculated given the start time,
so no biggy, just need the start time.)
I've been searching exhaustively in both google groups without many
leads. My target systems are Linux and Freebsd, though a portable
solution would be nice, but not necessary.
So far the only way I could find is parsing output from the ps command,
but it's a little different from system, and some show the time as Tue01
(to indicate something started @ 1 o'clock on tuesday, which is a dead
end in the sense of raw time value hunting, if you know what I mean; in
others words you can't derive ac actually date/time from a value like
that!
Any help in this would greatly be appreciated.