Beispiel #1
0
        // ログ出力
        public static void print(String tag, String msg)
        {
            if (!isEnable)
            {
                return;
            }

            // 有効無効判定
            if (enables.ContainsKey(tag))
            {
                bool enable = enables[tag];
                if (!enable)
                {
                    // 出力しない
                }
                else
                {
                    // 時間
                    double time = TimeCountByPerformanceCounter.GetSecTime();

                    Console.WriteLine(string.Format("{0}: {1}:{2}", time, tag, msg));

                    if (logWindow != null)
                    {
                        // todo
                        //logWindow.addLog(msg);
                    }
                }
            }
        }
Beispiel #2
0
        /**
         * Init
         */
        // 初期化、アプリ起動時に1回だけ呼ぶ
        public static void init()
        {
            setEnable(ViewTouch.TAG, true);
            //setEnable(UDrawManager.TAG, false);
            //setEnable(UMenuBar.TAG, false);
            //setEnable(UScrollBar.TAG, false);
            //setEnable(UButton.TAG, false);
            //setEnable(UWindow.TAG, false);

            startTime = TimeCountByPerformanceCounter.GetSecTime();
        }
Beispiel #3
0
 /**
  * 処理時間計測用のシステムの時間を初期化する
  * 以後の時間はこの時間からのどれだけ経過したかで表示される
  */
 public static void initSystemTime()
 {
     startTime = TimeCountByPerformanceCounter.GetSecTime();
 }