Added very basic time threshold support

Can be greatly enhanced with some php extensions, but it’s better than
nothing.