Exemple #1
0
        private string getNameClass(AbstractCollectionMeter ab, string result)
        {
            string fullName   = ab.GetType().ToString();
            string startName  = fullName.Substring(fullName.LastIndexOf('.') + 1);
            string normalName = startName.Substring(0, startName.LastIndexOf('M'));

            return(normalName + " = " + result);
        }
Exemple #2
0
        public string searching(AbstractCollectionMeter ab, int num)
        {
            sWatch.Start();
            ab.searching(num);
            sWatch.Stop();
            result = sWatch.Elapsed.ToString();

            return(ab.GetType().ToString().LastIndexOf('.') + "\t" + result);
        }