Time delay without using built in libraries

How can I write a time delay without using built in libraries?
Topic archived. No new replies allowed.