コード例 #1
0
        public void Add(Type builderType, string description, TimeSpan elapsed)
        {
            BuilderStats stats;
            if (!builderStats.TryGetValue(builderType, out stats))
            {
                stats = new BuilderStats(builderType);
                builderStats.Add(builderType, stats);
            }

            stats.Add(description, elapsed);
        }
コード例 #2
0
        public void Add(Type builderType, string description, TimeSpan elapsed)
        {
            BuilderStats stats;

            if (!builderStats.TryGetValue(builderType, out stats))
            {
                stats = new BuilderStats(builderType);
                builderStats.Add(builderType, stats);
            }

            stats.Add(description, elapsed);
        }