how to raise event if method was not called in last 5 seconds?
<p>Sorry about that probably too simple question but I do not know how to implement this. If certain method was not called for certain ammount of time I need to raise an event (when I receive this event I will try troubleshoot problem. This is kind of connetion problem and I need to be notified about it to try to solve it - i will change connection method.)</p>

<pre><code>public void MethodThatShouldBeCalledFrequently // acutally datagram from UDP received
{
    // if not called for 5 seconds than raise event 
}
public event EventHandler&lt;/*no parameters*/&gt; MethodNotCalledForFiveSeconds; // connection problem, switch from UDP to TCP
</code></pre>
