View Single Post
Old 02-23-2005, 10:30 PM  
MikeXAMO
Confirmed User
 
Join Date: Mar 2002
Location: Trailer Park
Posts: 660
you sure your echo statement is exactly as shown? It should print 55640, unless you misspelled your variable, or maybe forgot to put brackets around your math statement.

Try doing:

Code:
$time1=time();
$time2=time();
$result=$time2-$time1;
echo $result;
That should guarantee you the result you want. You shouldn't have to use typecasting (int) if you assigned your variables using the time() function, it will return an integer.
__________________
Xamo Entertainment
Xamo.com | EZSets.com

ICQ: 9439118 MSN: mikeb [at] xamo.com Tollfree: 800-544-XAMO
XXX CMS - Designed by Adult Webmasters, for Adult Webmasters.
MikeXAMO is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote