diff options
author | Justin Clarke Casey | 2008-10-03 15:23:35 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-10-03 15:23:35 +0000 |
commit | fbc813e65892b2cfd9b702b253dfc31ea0a4b70a (patch) | |
tree | 23862898ad49991cb4e3583eb6e9775ff33a0369 | |
parent | * refactor: make startup a template method (diff) | |
download | opensim-SC_OLD-fbc813e65892b2cfd9b702b253dfc31ea0a4b70a.zip opensim-SC_OLD-fbc813e65892b2cfd9b702b253dfc31ea0a4b70a.tar.gz opensim-SC_OLD-fbc813e65892b2cfd9b702b253dfc31ea0a4b70a.tar.bz2 opensim-SC_OLD-fbc813e65892b2cfd9b702b253dfc31ea0a4b70a.tar.xz |
* 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
-rw-r--r-- | OpenSim/Framework/Servers/BaseOpenSimServer.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index 099060a..8f103e1 100644 --- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs +++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs | |||
@@ -214,6 +214,10 @@ namespace OpenSim.Framework.Servers | |||
214 | m_log.Info("[STARTUP]: Version: " + m_version + "\n"); | 214 | m_log.Info("[STARTUP]: Version: " + m_version + "\n"); |
215 | 215 | ||
216 | StartupSpecific(); | 216 | StartupSpecific(); |
217 | |||
218 | TimeSpan timeTaken = DateTime.Now - m_startuptime; | ||
219 | |||
220 | m_log.InfoFormat("[STARTUP]: Server startup took {0}m {1}s", timeTaken.Minutes, timeTaken.Seconds); | ||
217 | } | 221 | } |
218 | 222 | ||
219 | /// <summary> | 223 | /// <summary> |