Calender API in Java:Performance
<p>Following code is giving very bad performance.
I came to know that there is performance problem with Calender API</p>

<pre><code> long startInMilliSec = measFileCreationTime_OssTime;
                Calendar thisMoment = Calendar.getInstance();
                long currentInMilliSec = thisMoment.getTime().getTime();
                if (currentInMilliSec &gt;= startInMilliSec) {
                        return (true);
                } else {
                        return (false);
                }
</code></pre>

<p>Is there any alternative for this?</p>
