time functions from C/C++/VC++ confuse me....

I

iceColdFire

Hi,
Last night I was trying to work on a project requiring lots of timer
controls...I needed good ANSI based API's for milliseonds and other
stuff...

However , google on time funcitons in c++, produced a lot of info
,,,but none of them seemed to be from bare C++.

Kindly help with which API has been originally deigned for time
controls and also which are outdated...

Thanks,
a.a.cpp
 
M

Mikhail Polatov

iceColdFire said:
Hi,
Last night I was trying to work on a project requiring lots of timer
controls...I needed good ANSI based API's for milliseonds and other
stuff...

However , google on time funcitons in c++, produced a lot of info
,,,but none of them seemed to be from bare C++.

Kindly help with which API has been originally deigned for time
controls and also which are outdated...

How about Boost.Date_Time? Take a look at
http://boost.org/doc/html/date_time.html
 
I

iceColdFire

hi: Mikhail
Indeed Boost.[...] is impressive wrapper for time functions...however I
am interested in using ANSI based pure C++ api's...means those api's
which have been defined for the C++ standard by the ANSI committee...

Thanks,
a.a.cpp
 
I

Ioannis Vranos

iceColdFire said:
Hi,
Last night I was trying to work on a project requiring lots of timer
controls...I needed good ANSI based API's for milliseonds and other
stuff...

However , google on time funcitons in c++, produced a lot of info
,,,but none of them seemed to be from bare C++.

Kindly help with which API has been originally deigned for time
controls and also which are outdated...


All the date and time functions of ISO C++ are defined in header <ctime>. It doesn't
provide millisecond accuracy explicitly, the smallest thing you can get is clock_t type
and CLOCKS_PER_SEC which is the amount of clock_t that consist a second.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top