StartTimer() 공개 메소드

public StartTimer ( string key ) : void
key string
리턴 void
예제 #1
0
        // Run BuildTools Button Clicked
        private void runBT_Click(object sender, EventArgs e)
        {
            bool   update = autoUpdateCB.Checked;
            string version;

            if (versionBox.SelectedIndex == 0)
            {
                version = "latest";
            }
            else
            {
                version = _versions[versionBox.SelectedIndex - 1];
            }

            _running = true;

            Thread thread = new Thread(delegate() {
                _googleAnalytics.SendEvent("BuildTools Run", "Version: " + version);
                _googleAnalytics.StartTimer("BuildTools Run Time");
                _runner.RunBuildTools(update, version);
                Enable();
                ProgressHide();
                _googleAnalytics.EndTimer("BuildTools Run Time");
                _running = false;
            });

            Disable();
            thread.Start();
        }