X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Ronald Fischer Subject: Re: Finding either boot time or login time Date: Fri, 30 Jan 2009 15:33:02 +0000 (UTC) Lines: 14 Message-ID: References: <4982FB77 DOT 7020505 AT byu DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Eric Blake byu.net> writes: > man uptime I have thought of uptime, but this requires doing date calculation (I have to subtract the uptime from the current time), which I wanted to avoid; plus I wanted to have it reproducible (i.e. if I calculate the "startup time" twice in succession, I wanted to get the same result - using the uptime calculation might well give differences of, say, one, in rare cases 2, seconds for the startup time on repeated calculations. But it seems there is no alternative. I had not expected that Windows would not log such events, like starting up or having some user logged in... Ronald -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/