SIL.FieldWorks.Common.Framework.FwApp.UpdateAppRuntimeCounter C# (CSharp) Méthode

UpdateAppRuntimeCounter() private méthode

private UpdateAppRuntimeCounter ( ) : void
Résultat void
		private void UpdateAppRuntimeCounter()
		{
			int csec = RegistrySettings.TotalAppRuntime;
			string sStartup = RegistrySettings.LatestAppStartupTime;
			long start;
			if (!String.IsNullOrEmpty(sStartup) && long.TryParse(sStartup, out start))
			{
				DateTime started = new DateTime(start);
				DateTime finished = DateTime.Now.ToUniversalTime();
				TimeSpan delta = finished - started;
				csec += (int)delta.TotalSeconds;
				RegistrySettings.TotalAppRuntime = csec;
			}
		}