hiiiii i want to calculate the time of php for encrypting a file of 10 MB using 3DES method. I implemented the code successfully. But unable to calculate the correct time because whenever i execute the page its gives different times in seconds as 10 sec or some time 24 seconds. Kindly help meeeeee this is code tested in xamp 1.7.2 <?php $timestart=time(); $file = 'textfile.txt'; $initial_contents = file_get_contents($file); if($initial_contents){ $key = "this key"; $encrypted_data = mcrypt_ecb (MCRYPT_3DES, $key, $initial_contents, MCRYPT_ENCRYPT); } ?> <table width="1120" align="center" bgcolor="#ffffff" border="0" valign="top" cellspacing="0" cellpadding="0"> <tr><td> <?php echo time()-$timestart; ?></td></tr></table>