Codes: Time Elpased

As promised here are some codes powering BeeIMG.

this php function is very useful to the users, we use it almost everywhere. It converts time to easy human readable format.

when the second string is set to false, it will return the first 10 seconds of the time as ‘Just now’. this was later added to calculate time of the real time image views.

to use it time_elapsed($time) or time_elapsed($time,true)