Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Combat Arms Hacks & Cheats › Combat Arms Hack Coding / Programming / Source Code › Time, date and FPS functions.

Time, date and FPS functions.

Posts 1–15 of 23 · Page 1 of 2
flameswor10
flameswor10
Time, date and FPS functions.
Code:
float	    fLastTickCount = 0.0f;           
float	    fCurrentTickCount;
char	     cFrameRate[30]; 
fCurrentTickCount = clock() * 0.001f;
noFps++;
if((fCurrentTickCount - fLastTickCount) > 1.0f)
{
fLastTickCount = fCurrentTickCount;
sprintf(FPSxD, "%d", noFps);
noFps = 0;
}
Code:
char        date[20];
struct tm * current_tm;
time_t current_time;
time (&current_time);
current_tm = localtime (&current_time);
sprintf( DatexD, "%d-%02d-%d",current_tm->tm_mon+1,current_tm->tm_mday,current_tm->tm_year-100+2000);
Code:
#include <time.h>
char        date[20];
struct tm * current_tm;
time_t current_time;
time (&current_time);
current_tm = localtime (&current_time);
sprintf( TimexD,"%02d:%02d:%02d", current_tm->tm_hour, current_tm->tm_min, current_tm->tm_sec );
Simple ways of doing it /
#1 · edited 15y ago · 15y ago
o-o
o-o
Nice
#2 · edited 15y ago · 15y ago
Sydney
Sydney
My Time Function is a bit smaller. And i think you dont have to include the time.h.
Bcuz i didnt included it and it works.
#3 · 15y ago
flameswor10
flameswor10
Quote Originally Posted by kongamonga View Post
My Time Function is a bit smaller. And i think you dont have to include the time.h.
Bcuz i didnt included it and it works.
It's the thought of releasing it and helping people that counts
Much simpler than Coryster2100's way
#4 · 15y ago
kotentopf
kotentopf
the is now without the "/" at beginning xD

Creditz for FPS: Sardonik(i think)
time idk but its so simple xD
#5 · 15y ago
Sydney
Sydney
Quote Originally Posted by flameswor10 View Post
It's the thought of releasing it and helping people that counts
Much simpler than Coryster2100's way
Thats true.
I just said that mine if a bit smaller. Well Gj Flame.
#6 · 15y ago
UGodly
UGodly
Good job dude and thanks
#7 · 15y ago
whatup777
whatup777
....Why this again?
#8 · 15y ago
Zithium
Zithium
Thanks man, good job.
#9 · 15y ago
NO
NOOBJr
Nice Job Bro. But there is a slightly better way of doing it!
#10 · 15y ago
NO
NOOB
cOLD

#11 · 15y ago
Sydney
Sydney
Quote Originally Posted by ᴺᴼᴼᴮ View Post
cOLD

Spam much ?
#12 · 15y ago
flameswor10
flameswor10
Quote Originally Posted by Zane Slayman View Post
Nice Job Bro. But there is a slightly better way of doing it!
I know. But Just showing one way of doing these things
#13 · 15y ago
seeplusplus
seeplusplus
xD I do time and date differently.
[php]#include <ctime>
time_t t = time(0);
cpp.PrintText(ScreenCenterX-1, 10, D3DCOLOR_XRGB(0,0,0), cpp.pFont1, ctime(&t));[/php]
Very simple...
#14 · 15y ago
confict
confict
Quote Originally Posted by seeplusplus View Post
xD I do time and date differently.
[php]#include <ctime>
time_t t = time(0);
cpp.PrintText(ScreenCenterX-1, 10, D3DCOLOR_XRGB(0,0,0), cpp.pFont1, ctime(&t));[/php]
Very simple...
This is a way easyer way lol
#15 · 15y ago
Posts 1–15 of 23 · Page 1 of 2

Post a Reply

Tags for this Thread

None