Run thread for less than a second
<pre><code>new Handler().postDelayed(new Runnable() {
            public void run() {
                //code
            }
        }, secondsDelayed * 1000);
</code></pre>

<p>here even if change value of 1000 to 100 or 10 thread runs for min 1sec.</p>
