They make things called seconds timer which allow you to program down to the second.

What is your humidity that you think you need a misting system or a fogger? Keeping ambient humidity of 50% shouldn't be too hard.