public long GetDurationInTicks(WorldTime time) { return((long)(time.GetTotalSeconds() * TimeSpan.TicksPerSecond / Rate)); }