Questions tagged [delay]

Delay refers to amount of time between two events.

A delay is simply the difference in time between two events.

This may refer to the start and stop of a single event (e.g. data processing delay) or the execution of two separate, independent events.

A delay may be manually implemented by the programmer using sleep or pause functions common in many programming languages.

In the case of computer networks, delay between sending and receiving of data packets is referred to synonymously as latency.

4215 questions
9
votes
3 answers

RecyclerView : How to create insert animation effect?

I have a ReyclerView working with a LinearLayoutManager and an Adapter. I have a list of items I would like to display in the recyclerview with the insert (slide in) animation. How do I go about this ? I would like to display the…
milindbableshwar
  • 256
  • 1
  • 3
  • 9
9
votes
3 answers

delay a for loop with javascript

I want to delay a "for loop" for a while but don't know how to do it. For example. Let's say this "for loop" runs from 0 to 8 and after each i there should be a delay for 2 sek. for (var i=0; i<8; i++{ do something... wait for 2 sek. and go on…
Linda
  • 2,375
  • 4
  • 30
  • 33
9
votes
2 answers

tuning pid in systems with delay

I need to tune PI(D) gains in a system which has a quite large delay. It's a common temperature controller, but the temperature probe is far away from the heater. Some further info: the response of the probe is delayed about 10 seconds from any…
Mark
  • 4,338
  • 7
  • 58
  • 120
9
votes
1 answer

How to deal with elasticsearch delay when doing unit test?

There're some delay in elasticsearch from requesting to index a document to the document become searchable. I want to know how to deal with this in a unit test, for example, first index a document, then check if it is really indexed. Now I simply…
D_S_toowhite
  • 643
  • 5
  • 17
9
votes
4 answers

Why is my python output delayed to the end of the program?

I've got an extremely simple application: import sys from time import sleep for i in range(3): sys.stdout.write('.') sleep(1) print('Welcome!') I expect it to print out a dot every second (3 times), after which it should display…
kramer65
  • 50,427
  • 120
  • 308
  • 488
9
votes
6 answers

Need microsecond delay in .NET app for throttling UDP multicast transmission rate

I'm writing a UDP multicast client/server pair in C# and I need a delay on the order of 50-100 µsec (microseconds) to throttle the server transmission rate. This helps to avoid significant packet loss and also helps to keep from overloading the…
James Dunne
  • 3,607
  • 3
  • 24
  • 29
9
votes
3 answers

Delay Javascript hover action

I have an image on my site that has a jquery hover action assigned to it. But it's easy to accidentally mouse over that area, and if you do it more than once, the hover keeps appearing, disappearing, appearing, etc, until it's shown and disappeared…
Molly Campbell
  • 339
  • 2
  • 6
  • 15
9
votes
4 answers

I want to delay a link for a period of 500 with javascript

I've been looking through the Stackoverflow questions, trying to get help with a simple link delay; I want to put it around a div, and I can't make heads or tails of the examples I've found. So far, I understand that I need to halt the native…
ammonhra
  • 93
  • 1
  • 1
  • 3
9
votes
1 answer

run/pause CSS animation with jQuery

I would like to start with a paused CSS animation then use jQuery to run the animation for a second before pausing again. The css is below: #animation { -webkit-animation: one 5s infinite; -webkit-animation-play-state:…
Ampersand
  • 426
  • 1
  • 6
  • 12
8
votes
3 answers

How can I change

tag data dynamically after some defined time delay using javascript?

I want to change only

tag contents using javascript after a defined time delay. For example a

messages

should change depending on the no. of new messages came. As

messages(1)

messages(2)

Aishwarya Shiva
  • 3,460
  • 15
  • 58
  • 107
8
votes
2 answers

SimpleDateFormat takes too long when the time zone is included

I am using this simple date format SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS Z"); the problem is when I use this it takes too long to convert the time, in logcat I see something like this I/Resources( 4284): Loaded…
Lukap
  • 31,523
  • 64
  • 157
  • 244
8
votes
1 answer

Ways to throttle ajax requests

I'm using the following code (written by another user) to throttle ajax requests in a livesearch function: JSFiddle if you prefer a demo: http://jsfiddle.net/4xLVp/ It seems buggy, though. Clearing values with Ctrl+shift+back-arrow, and typing again…
Mohamad
  • 34,731
  • 32
  • 140
  • 219
8
votes
2 answers

give a delay of few seconds without using threads

How can I give a delay of few seconds without using threads.some function that I can call anywhere for giving delay. Android built-in function is highly preferred. Thanks
Waheed Khan
  • 1,323
  • 6
  • 18
  • 28
8
votes
1 answer

How to add some delay between AnimationController.repeat() in Flutter

I need to add some delay between each iteration of animation gets call to repeat. Something like the following image. I tried to do it by passing value to the period parameter of the repeat method but it was not what I expected. _controller =…
8
votes
1 answer

Vim display in statusline after delay

Is it possible to have the statusline in Vim be updated so and so long after a given event? And if so, how does one do that?
john-jones
  • 7,490
  • 18
  • 53
  • 86