K
Krakatioison
I am running a loop which I need to pause for 3 seconds, at the end of each
cycle.
I found somewhere to use threads.delay(), but I am not using any threads and
when I typed it in, it wasn't even recognized as a command.
So what I am doing now is this:
for a = 0 to 15000
dim d as integer = a*a
next
This will delay the run of the next cycle for like 2-3 secs, but it's taking
all my cpu power and slows down the machine like crazy.
I need some workaround which wouldn't slow down my machine and would work as
a delay method for vb.net.
Thanks a lot for all your answers.
Sincerely,
K.
cycle.
I found somewhere to use threads.delay(), but I am not using any threads and
when I typed it in, it wasn't even recognized as a command.
So what I am doing now is this:
for a = 0 to 15000
dim d as integer = a*a
next
This will delay the run of the next cycle for like 2-3 secs, but it's taking
all my cpu power and slows down the machine like crazy.
I need some workaround which wouldn't slow down my machine and would work as
a delay method for vb.net.
Thanks a lot for all your answers.
Sincerely,
K.