-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|584|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Timing


 
Paul
Created : 10 April 2007
Edited : 25 April 2007
System : Windows
Language : Blitz

Frames per second function

very simple to use fps counter

just copy the code into your prog


 

Comments


Tuesday, 10 April 2007, 07:41
JL235
Wouldn't it be simpler to just use a couple of integers? Something like:


Tuesday, 10 April 2007, 07:48
Jayenkai
Peeks and Pokes are more fun
Tuesday, 10 April 2007, 07:50
Paul

Peeks and Pokes are more fun


And I only use one variable which is more fun as well
Tuesday, 10 April 2007, 08:58
mike_g
Hey Paul, I might use this I always made my FPS functions the way diablo showed, but on bigger programs I like to try an use as little globals as possible so that I dont end up with a giant list of em.