time limited demo

Blitz3D Forums/Blitz3D Beginners Area/time limited demo

what is the best way to limit your application to eg 5 minutes playing time so that when the time expires the application exits, please?