Hi, Is there a way to know for how long an image is running (i.e., when the VM started it)? Cheers, Francois
WorldMenu -> System -> Vm statistics. It accesses the millisecondClockValue directly though, so will not be adjusted for rollovers, nor (if it's not a hard guarantee) VMs whose initial value is something other than 0. If you need it, a new class which fulfill those requirements shouldn't be too hard to make though. - Register it as part of startUp - Record millisecondClockValue - Store accumulation at rollovers. -- View this message in context: http://forum.world.st/image-uptime-tp3508657p3511774.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
On 10 May 2011, at 15:02, Henrik Sperre Johansen wrote:
If you need it, a new class which fulfill those requirements shouldn't be too hard to make though. - Register it as part of startUp - Record millisecondClockValue - Store accumulation at rollovers.
Have a look at the Seaside WAUpTimeTracker class that I wrote, it does exactly that (actually based on TimeStamp). Sven
menu -> System -> VM statistics the first line is "uptime" which is what you need. check #vmStatisticsReportString for details On Mon, May 9, 2011 at 10:13 AM, Francois Stephany < tulipe.moutarde@gmail.com> wrote:
Hi,
Is there a way to know for how long an image is running (i.e., when the VM started it)?
Cheers, Francois
-- Mariano http://marianopeck.wordpress.com
participants (4)
-
Francois Stephany -
Henrik Sperre Johansen -
Mariano Martinez Peck -
Sven Van Caekenberghe