Questions tagged [timedelay]
225 questions
3183
votes
13 answers
How do I make a time delay?
How do I put a time delay in a Python script?

user46646
- 153,461
- 44
- 78
- 84
73
votes
13 answers
How to create a sleep/delay in nodejs that is Blocking?
I'm currently trying to learn nodejs and a small project I'm working is writing an API to control some networked LED lights.
The microprocessor controlling the LEDs has a processing delay, and I need to space commands sent to the micro at least…

on3al
- 2,090
- 4
- 20
- 19
37
votes
5 answers
PHP sleep delay
In PHP, I want to put a number of second delay on each iteration of the loop.
for ($i=0; $i <= 10; $i++) {
$file_exists=file_exists($location.$filename);
if($file_exists) {
break;
}
//sleep for 3 seconds
}
How can I do…

Yeak
- 2,470
- 9
- 45
- 71
34
votes
17 answers
implement time delay in c
I don't know exactly how to word a search for this.. so I haven't had any luck finding anything.. :S
I need to implement a time delay in C.
for example I want to do some stuff, then wait say 1 minute, then continue on doing stuff.
Did that make…

developer
- 7,252
- 14
- 49
- 57
28
votes
4 answers
OnKeyUp JavaScript Time Delay?
Hi Again Masters Of The Web :)
Now, I have got a new stupid question, and I am asking to forgive me. I read everywhere about this solution, but didn't find the one that works for me.
I have got:

Spoonk
- 705
- 2
- 10
- 17
27
votes
9 answers
How can I delay splash launch screen programmatically in Swift Xcode iOS
I have put an image in imageView in LaunchStoreyboard. How can I delay the time of image programmatically?
Here is the Launch Screen Guideline from Apple.
Here is code for Launch Screen View controller:
import UIKit
class LaunshViewController:…

Xcodian Solangi
- 2,342
- 5
- 24
- 52
22
votes
0 answers
leaving a time delay in python
is there any way to leave a time delay between the execution of two lines of code?

leachrode
- 303
- 3
- 15
19
votes
13 answers
Timing Delays in VBA
I would like a 1 second delay in my code. Below is the code I am trying to make this delay. I think it polls the date and time off the operating system and waits until the times match. I am having an issue with the delay. I think it does not…

Lagg Master
- 245
- 1
- 4
- 8
14
votes
3 answers
Time delay estimation between two audio signals
I have two audio recordings of a same signal by 2 different microphones (for example, in a WAV format), but one of them is recorded with delay, for example, several seconds.
It's easy to identify such a delay visually when viewing these signals in…

GreyCat
- 16,622
- 18
- 74
- 112
14
votes
3 answers
time delay in C. usleep
I'm developing the game server, which is written on C. And I need to develop a cycle with a certain frequency (50 times per second)
to perform an algorithm.
The problem is that I can't pause the program for an exact time interval - 20000…

Andrew
- 143
- 1
- 1
- 6
14
votes
2 answers
Time delay before redirect
I create a register page for my web application. The application require that after user successfully register a new account, the page will show a message "Register successfully", then wait for 5 seconds before switch to Login page. I used…

user1331344
- 163
- 1
- 1
- 4
13
votes
1 answer
HTML5
I am using the HTML 5 "Video" tag to show the video on my page with the "Loop" feature or attribute.
Is there any way we can add a delay or gap between video using the "Loop" attribute??
11
votes
2 answers
basic delay on jquery .click function
I have the most basic jquery function of them all, but I couldn't find a way in the documentation to trigger the contents of this click function after say 1500 milliseconds:
$('.masonryRecall').click(function(){
$('#mainContent').masonry();
…

kalpaitch
- 5,193
- 10
- 43
- 67
11
votes
8 answers
How to make an Android program 'wait'
I want to cause my program to pause for a certain number of milliseconds, how exactly would I do this?
I have found different ways such as Thread.sleep( time ), but I don't think that is what I need. I just want to have my code pause at a certain…

JuiCe
- 4,132
- 16
- 68
- 119
9
votes
3 answers
Stop current operation in Visual Studio
When using Visual Studio I often encounter situations when the IDE freezes while performing some operation. For instance, this frequently happens when I move next statement pointer (yellow arrow) during the debug session, when I unintentionally…

Sergiy Belozorov
- 5,856
- 7
- 40
- 73