2017-01-19 13:13:35 +00:00
|
|
|
|
using System;
|
|
|
|
|
namespace Nibriboard
|
|
|
|
|
{
|
|
|
|
|
public static class Env
|
|
|
|
|
{
|
|
|
|
|
public static readonly DateTime ServerStartTime = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
public static double SecondsSinceStart {
|
|
|
|
|
get {
|
|
|
|
|
TimeSpan timeSinceStart = DateTime.Now - ServerStartTime;
|
2017-01-21 17:06:19 +00:00
|
|
|
|
return Math.Round(timeSinceStart.TotalSeconds, 4);
|
2017-01-19 13:13:35 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|