From fbc813e65892b2cfd9b702b253dfc31ea0a4b70a Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 3 Oct 2008 15:23:35 +0000 Subject: [PATCH] * For shits and giggles, print out the time taken for a server to start up (which doesn't include stuff such as script starting time on the region server). * Yes, you could work this out from timestamps in the logs, but that's far too much work --- OpenSim/Framework/Servers/BaseOpenSimServer.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index 099060aec3..8f103e1009 100644 --- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs +++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs @@ -214,6 +214,10 @@ namespace OpenSim.Framework.Servers m_log.Info("[STARTUP]: Version: " + m_version + "\n"); StartupSpecific(); + + TimeSpan timeTaken = DateTime.Now - m_startuptime; + + m_log.InfoFormat("[STARTUP]: Server startup took {0}m {1}s", timeTaken.Minutes, timeTaken.Seconds); } ///