Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / help with Timer!!!

Author
Message
3dZmaster
23
Years of Service
User Offline
Joined: 30th Jun 2003
Location: Finland
Posted: 16th Jul 2003 00:15
I should make a timer to my racing game. Now The Timer() command reports the time as milseconds. How could I get this into gormat Hours:Minutes:Seconds:milseconds? PLEASE ANSWER! Thanx
Sorry 'bout making this many topics!
Current project: Dodge Viper Car Game (Not named yet) Other car models are going to be included soon
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 16th Jul 2003 00:19
I've got a plug-in that takes the current system time and lets you format it how you like.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins and other exciting things - oh my, yes!
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 16th Jul 2003 00:35
mystr$ = get time$()
Print MyStr$;"." ;timer()

Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 16th Jul 2003 00:38
Sorry forgat that on the last 3 digits are needed from timer

mystr$ = get time$()
Print MyStr$;"." ;timer() mod 1000

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th Jul 2003 02:00
I think that this is what you want. I've only tested the hundredths, seconds and minutes. You'll need to test the hours

Login to post a reply

Server time is: 2026-07-21 12:50:43
Your offset time is: 2026-07-21 12:50:43