Ejemplo n.º 1
0
        private static void TimeIt(ALoader item, Context context, long id)
        {
            var sw = System.Diagnostics.Stopwatch.StartNew();

            using (var bm = item.Load(context, id))
            {
                sw.Stop();
                bm.Recycle();
            }

            Log.Info("BM_TIMER", string.Format("{0} ran in {1}.{2}seconds", item.Name, sw.Elapsed.Seconds, sw.ElapsedMilliseconds));
        }
Ejemplo n.º 2
0
        private static void TimeIt(ALoader item, Context context, long id)
        {
            var sw = System.Diagnostics.Stopwatch.StartNew();

            using (var bm = item.Load(context, id))
            {
                sw.Stop();
                bm.Recycle();
            }

            Log.Info("BM_TIMER", string.Format("{0} ran in {1}.{2}seconds", item.Name, sw.Elapsed.Seconds, sw.ElapsedMilliseconds));
        }