how to use time.h in c++ please guys help me.

Recommended Answers

All 2 Replies

Here is a complete list of the available time functions. When to use what all depends on what you want to do.

It's the same as in C, except that the header is included with #include <ctime>, and all the functions and stuff are in the std namespace (so you have to do std:: in front of each name, or do a using-statement).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.