Solved

Timing / Timer library

Posted on 1998-10-05
1
157 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 100 total points
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall‚Ķ
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now