AllMarcos (11-01-2011)
Didn't see it up here, pretty simple. Just thought I'd share for those who didn't have it.
Simple Time Display:
FPS Display:Code:#include <ctime> time_t t = time(0); //To Use DrawString(x, y, Colour,pFont, ctime( &t ));
Credits to whoever.Code:char sFPS[20]="xxx Fps"; int FPScounter = 0; float FPSfLastTickCount = 0.0f; float FPSfCurrentTickCount; void FPScheck(char *str, char *format) { FPSfCurrentTickCount = (clock() * 0.001f); FPScounter++; if((FPSfCurrentTickCount - FPSfLastTickCount) > 1.0f) { FPSfLastTickCount = FPSfCurrentTickCount; sprintf(str,format,FPScounter); FPScounter = 0; } } //To use DrawString(x, y, Colour, pFont, sFPS);
I Read All Of My PM's & VM'sIf you need help with anything, just let me know.
Staff Administrator Since 10.13.2019
Publicist Since 04.04.2015
Middleman Since 04.14.2014
Global Moderator Since 08.01.2013
Premium Since 05.29.2013
Minion+ Since 04.18.2013
Combat Arms Minion Since 12.26.2012
Contributor Since 11.16.2012
Member Since 05.11.2010
AllMarcos (11-01-2011)
Good job bro!
Contact: lucasco_10@hotmail.com
thx this is really helpful
I usually don't spend this much time on the internet, but when I do, I'm on some forum.
Gift me credits or BTC! 1MktRupu3Goup79PrnYFW13bRi9wciiWWs
Buying all starbucks accounts with currency!
very good
I use in my next release
In FPS need to add these libraries
Code:#include <time.h> #include <stdio.h>