[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
Pete's QBASIC Site • Is there a way to delay less than a second?
Page 1 of 1

Is there a way to delay less than a second?

Posted: Sat Sep 17, 2016 10:16 pm
by giwake
I'm trying to make a demoscene/animation and I can't find any way to wait less than a second.
Please don't reply with

Code: Select all

 for x = 1 to 9999999999999
 next
Because my PC is WAYY too fast.
Thanks,
giwake

Re: Is there a way to delay less than a second?

Posted: Sun Sep 18, 2016 6:33 am
by burger2227
TIMER can be used down to 1/18th of a second: http://www.qb64.net/wiki/index.php/TIMER

You can use _DELAY in QB64 only for delays of less than one second down to .001

Re: Is there a way to delay less than a second?

Posted: Tue Oct 04, 2016 11:44 pm
by giwake
Thanks! :)

Re: Is there a way to delay less than a second?

Posted: Fri Oct 18, 2019 12:17 am
by mikefromca
That makes a delay of 0.1 seconds (1/10th) of a second. Adjust the number to suit your fancy.

Code: Select all

start#=timer
Do
loop until (timer - start#) >= 0.1