timer.scheduleAtFixedRate is executed in a second not after delay time
<p>i am using timer like:</p>

<pre><code>Timer timer = new Timer();
timer.scheduleAtFixedRate(new CheckWifi(), 0, 50000); // 5 seconds

class Wifi extends BroadcastReceiver {

 protected class CheckWifi extends TimerTask {

        @Override
        public void run() {
        }
 }
</code></pre>

<p>but <code>CheckWifi</code> class is executed in a second not after 50 second like is set in <code>scheduleAtFixedRate</code>. Why?</p>

<p>Is it better to use <code>Runnable</code> instead of <code>Timer</code>?</p>
