Depending on the database that you are storing your data in, you may have access to a function like DATEDIFF. This function will usually return the delta of two dates in a format that you choose (seconds, minutes, ...).
function). Then go back and compare your stored epoch seconds to the current epoch seconds. If the delta of the two epochs is greater than 900, then the elapsed time is greater than 15 minutes.