time/clock

i wrote a program that searches through names from text file. what function should
i use to cout time it took to execute a certain search.
Topic archived. No new replies allowed.