public void FromSeconds_ShouldReturnTimestamp() { using (var timestamp = Timestamp.FromSeconds(1d)) { Assert.AreEqual(1_000_000, timestamp.Microseconds()); } }
public static void Main(string[] args) { if (args.Length != 4) { Console.Error.WriteLine("Usage: ResidentSetSnapshotsToXml <trace.etl> <start (s)> <end (s)> <out.xml>"); return; } string tracePath = args[0]; Timestamp startTime = Timestamp.FromSeconds(decimal.Parse(args[1])); Timestamp stopTime = Timestamp.FromSeconds(decimal.Parse(args[2])); string xmlPath = args[3]; IReadOnlyDictionary <PageKey, uint> pageCounts = GetResidentSetPageCounts(tracePath, startTime, stopTime); WritePageCountsToXml(pageCounts, xmlPath, startTime, stopTime); }
public void FromSeconds_ShouldReturnTimestamp() { var timestamp = Timestamp.FromSeconds(1d); Assert.AreEqual(timestamp.Microseconds(), 1_000_000); }