Timer not working properly? C#
<p>my timer isnt working properly.
Could someone tell me whats wrong?</p>

<pre><code>    public void Timer()
    {

        DateTime targetDate = DateTime.Now;
        if (DateTime.Now &gt; targetDate)
        {
            int Now = DateTime.Now.Hour;
            string dtNow = Now.ToString();
            targetDate = DateTime.Now.AddMinutes(1);
            int targetdate = targetDate.Hour;
            string TD = targetdate.ToString();

            if (Now == targetdate){
            Vote();
            }
        }

    }
</code></pre>

<p>It should run the vote function when the target date is equal to the time Now.</p>

<p>Thanks,
Oliver</p>
