timing... what to use.

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
HexDump
Posts: 70
Joined: Tue Jun 07, 2005 9:18 pm

timing... what to use.

Post by HexDump »

Hi,

What functions are you using to sync things in your programs? Does exist a performance counter like pc?.

Thanks in advance,
HexDump.
inomine
Posts: 53
Joined: Thu May 05, 2005 7:26 pm

Post by inomine »

You mean threads and semaphores or just a waiting for screen-refresh?
HexDump
Posts: 70
Joined: Tue Jun 07, 2005 9:18 pm

Post by HexDump »

No I don´t mean threads, I mean getting a time to pass to the application to excecute things for this elapsed time.

Thanks in advance,
HexDump.
Treat
Posts: 16
Joined: Sun Sep 26, 2004 10:17 pm

Post by Treat »

you can use clock() or time() from time.h
http://www.cppreference.com/stddate/
Post Reply