Exemple #1
0
        public PerformanceSnapshot Snapshot()
        {
            var snap = new PerformanceSnapshot(this.ReadBytes, this.WrittenBytes)
            {
                Start = this.Start,
                Taken = DateTime.UtcNow
            };

            return(snap);
        }
Exemple #2
0
        public PerformanceSnapshot Snapshot()
        {
            Thread.MemoryBarrier();
            var snap = new PerformanceSnapshot(ReadenBytes, WrittenBytes)
            {
                Start = Start,
                Taken = DateTime.UtcNow
            };

            return(snap);
        }
        public PerformanceSnapshot Snapshot()
        {
#if !(PORTABLE || NETCORE)
            Thread.MemoryBarrier();
#endif
            var snap = new PerformanceSnapshot(ReadenBytes, WrittenBytes)
            {
                Start = Start,
                Taken = DateTime.UtcNow
            };
            return(snap);
        }
		public PerformanceSnapshot Snapshot()
		{
#if !PORTABLE
			Thread.MemoryBarrier();
#endif
			var snap = new PerformanceSnapshot(ReadenBytes,WrittenBytes)
			{
				Start = Start,
				Taken = DateTime.UtcNow
			};
			return snap;
		}