In php ways to get last execution duration of a particular file? I'm focusing on a wordpress plugin the industry cron job and that i want its last execution time. how do i have it? Really issue is suppose because of some problem my isn't performed then how do i understand what was it's last execution time.

You are able to log it somewhere. Otherwise that information is not available.

Use [cde] to obtain a precise time measure.

Best option is too make use of a database (a set file database just like a simple text file could be fine) and keep time so that you can see clearly later.

But when this isn't a choice use the fileatime(). It will work fine as lengthy as the cron job is the only person being able to access the file under consideration