示例#1
0
        public static KpiLog Generate()
        {
            KpiLog log = new KpiLog()
            {
                Timekeeper = new Stopwatch()
            };

            log.Timekeeper.Start();
            return(log);
        }
示例#2
0
        public static KpiLog Generate(string activity)
        {
            KpiLog log = new KpiLog()
            {
                Timekeeper = new Stopwatch()
            };

            log.Timekeeper.Start();
            log.Items.Add(new TypedItem("activity", activity));
            return(log);
        }