Exemple #1
0
 public void WriteXml(XmlWriter writer)
 {
     writer.WriteAttributeString("DurationMilliseconds", DurationMilliseconds.ToString());
     writer.WriteAttributeString("Title", Title);
     writer.WriteAttributeString("Artist", Artist);
     writer.WriteAttributeString("Path", Path);
 }
        public override int GetHashCode()
        {
            int result = 1;

            result = result * 13 + PayloadType.GetHashCode();
            result = result * 13 + DurationMilliseconds.GetHashCode();

            return(result);
        }
Exemple #3
0
        /// <summary>
        /// Stops the current DB timing.
        /// </summary>
        public void Stop()
        {
            DurationMilliseconds = (long)_profiler.Elapsed.TotalMilliseconds - StartMilliseconds;
            if (!Data.ContainsKey("readStart"))
            {
                Data["readStart"] = DurationMilliseconds.ToString(CultureInfo.InvariantCulture);
            }

            _profiler.GetTimingSession().AddTiming(this);
        }