c# | Timer to check a button click
<p>I'm trying to make a game where you have to click on a button, and to put it 
simply, all i want is a timer to check if a button was pressed in the last 10 seconds. if so, it needs to display a message that the game was over, else - it will reset the count of the seconds.
can anyone help me please?
<strong>code:</strong></p>

<pre><code>    using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Pointer
{
    public partial class MainForm : Form
    {
        //Variables
        int count = 0; //Count The Score
        bool RandomColorEnabled = true;
        bool GameStarted = false;
        int OverCount = 0;        

        //Dialogs
        ColorDialog clg = new ColorDialog();        

        public MainForm()
        {
            InitializeComponent();            
        }

        private void Pointer_Click(object sender, MouseEventArgs e)
        {
            //Interval
            if (count % 20 == 0)
            {
                if (Movement.Interval &gt;= 0)
                {
                    try
                    {
                        Movement.Interval -= 900;
                    }
                    catch
                    {
                        Movement.Interval = 100;
                    }
                }                
            }

            //StartingText
            StartingText.Enabled = false;
            StartingText.Visible = false;

            //Creates the all-mighty random that does pretty much everything
            Random rnd = new Random();

            //Checks if the user wants a random color each time.
            if (RandomColorEnabled)
            {
                int R = rnd.Next(0, 240);
                int G = rnd.Next(0, 240);
                int B = rnd.Next(0, 240);
                Pointer.BackColor = Color.FromArgb(R, G, B);
            }

            if (GameStarted)
            {
                //Score
                count++;
            Score.Text = "Score: " + count;
            }

            GameStarted = true;

            //No Focus
            this.Focus();

        }


        //Menu Strip Shit Here:

        private void Reset_All_Click(object sender, EventArgs e)
        {
            Application.Restart();
        }

        private void Reset_Score_Click(object sender, EventArgs e)
        {
            count = 0;
            Score.Text = "Score: " + count;
        }

        private void Reset_Pointer_Click(object sender, EventArgs e)
        {
            GameStarted = false;
            StartingText.Enabled = true;
            StartingText.Visible = true;
            Reset_Score.PerformClick();
            Movement.Interval = 10000;
            Pointer.Location = new Point(213, 189);
        }

        private void CustomColor_Click(object sender, EventArgs e)
        {
            RandomColorEnabled = false;
            clg.FullOpen = true;
            clg.ShowDialog();
            if (clg.Color.R &lt; 240 &amp;&amp; clg.Color.G &lt; 240 &amp;&amp; clg.Color.B &lt; 240)
            {
                Pointer.BackColor = clg.Color;
            }
            else
            {
                MessageBox.Show("Sorry, Please Pick A Diffrent Color.");
            }
        }

        private void RandomColor_Click(object sender, EventArgs e)
        {
            RandomColorEnabled = true;
        }

        private void Menu_About_Click(object sender, EventArgs e)
        {
            MessageBox.Show("This Program Was Created By Itay Habani ©","~About~",MessageBoxButtons.OK,MessageBoxIcon.Information);
        }

        private void Menu_Help_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Click the pointer to earn points.\nTo pick your own color, go to:\nSettings -&gt; Pointer Color -&gt; Custom", "-HELP-", MessageBoxButtons.OK, MessageBoxIcon.Question);
        }

        private void Movement_Tick(object sender, EventArgs e)
        {
            Random rnd = new Random();
            //Placement  
            if (GameStarted)
            {
                int x = rnd.Next(50, 400);
                int y = rnd.Next(50, 400);
                Pointer.Location = new Point(x, y);
            }
        }


    }
}
</code></pre>