annotate Implab/Diagnostics/LogicalOperation.cs @ 264:3a6e18c432be
v3
Added XmlToJson xsl transformation.
Added JsonXmlReader.CreateJsonXmlReader(...) methods
Added SerializationHelpers.SerializeJson/DeserializeJson methods
author |
cin |
date |
Mon, 16 Apr 2018 18:43:49 +0300 |
parents |
34df34841225 |
children |
|
rev |
line source |
253
|
1 using System;
|
|
2 using System.Diagnostics;
|
|
3
|
|
4 namespace Implab.Diagnostics {
|
|
5 public class LogicalOperation {
|
|
6 public Stopwatch OperationStopwatch { get; private set; }
|
|
7
|
|
8 public string Name { get; private set; }
|
|
9
|
|
10 internal LogicalOperation(string name) {
|
|
11 Name = string.IsNullOrEmpty(name) ? "<unnamed>" : name;
|
|
12 OperationStopwatch = Stopwatch.StartNew();
|
|
13 }
|
|
14
|
|
15 public override string ToString() => Name;
|
|
16 }
|
|
17 } |