Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Timing / Timer library

Posted on 1998-10-05
1
Medium Priority
?
205 Views
Last Modified: 2010-04-01
Im using PTC(www.gaffer.org/ptc)for my graphic routines. As ptc doesnt have any timing functions, im searching for a timing library(for use with vc5). What im trying to do is a pixelbounce effect, kinda hard without timing, i think :)
0
Comment
Question by:elioth
1 Comment
 
LVL 8

Accepted Solution

by:
Answers2000 earned 200 total points
ID: 1174406
1. Check time.h - for example use "time" to get the current time

    time_t ltime;
    time( &ltime );
    printf( "Time in seconds since UTC 1/1/70:\t%ld\n", ltime );
    printf( "UNIX time and date:\t\t\t%s", ctime( &ltime ) );

2. If you are only using interval timing.  GetTickCount is a handy function to get the number of ticks since Windows started


0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question