Re[2]: Get time difference without time()
- Posted by aku at inbox.as Mar 15, 2001
- 445 views
Sorry, I didnt mean that scenario. I just want to do like this x = thefunction() .. do something here ... timeelapsed = thefunction() - x I can do that with time(), but I dont want to use time(). L> Let me guess, You are wanting to do this to prevent the L> following scenario: L> Joe Blow downloads your shareware (time-limited) software. L> Joe Blow sets his computer clock to 5 years ahead. L> Joe Blow installs your software. L> Joe Blow sets his computer clock back to normal time... L> ... thus defeating your time-limit. L> The truth is, I think the user can change any time that you L> can check with your program. However, if you use date() then L> check to make sure that your saved-time is actually AFTER L> the current time, that should prevent Joe Blow from L> preventing you from preventing him from using your software L> more than the specified amount of time. L> Am I wrong... anyone? L> Lewis Townsend