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
1
vote
1 answer

Android RXJava cleaner solution

I have a dynamic list of commands which shall be executed. Some of these command objects should be executed in a background thread and some of them have to be executed on the UiThread as they change views and trigger animations. Some commands are…
GabrielWeis
  • 340
  • 1
  • 3
  • 13
1
vote
2 answers

Php sleep function for delay?

Suppose a website with 'high' traffic, I want to use the php sleep(4) function to avoid flooding. Is it a good idea or should I use different delay ways ? sleep() keeps a connection open, could this be a problem ? I do: index.php -> stuff.php ->…
Jackt
  • 171
  • 1
  • 1
  • 15
1
vote
1 answer

Android - How to remove MediaPlayer loop delays?

I set a music file to loop on MediaPlayer for my game, but it causes a 2 sec delay when it loops. My code: boolean activateSounds = getIntent().getBooleanExtra("Activate sounds", true); if(mp!=null){ mp.reset(); mp.release(); …
LukeHxH
  • 32
  • 5
1
vote
1 answer

Why can't I use slideUp() for two different events for the same element?

I have this session message:
Hi ×
And I have this jQuery code: $(function(){ …
Aaron Adrian
  • 521
  • 3
  • 12
1
vote
3 answers

Delay page change on Submit - jQuery

Header $(document).ready(function() { $('#user_box').animate({width: "263px"}, "slow"); $('#submit').click(function(){ $('#user_box').animate({width: "0px"}, "slow"); }); }); Content
FabienO
  • 13
  • 1
  • 3
1
vote
1 answer

performSegueWithIdentifier delay only for the first time

I'm having this weird situation over my app. I'm calling performSegueWithIdentifier over the main thread : dispatch_async(dispatch_get_main_queue()){ self.performSegueWithIdentifier("toFrame", sender: nil) } I've set breakpoints thru the…
Roi Mulia
  • 5,626
  • 11
  • 54
  • 105
1
vote
1 answer

DDE solvers in MATLAB

Is there a way to interface a C++ or a fortran DDE (delay differential equation) solver with MATLAB? The standard MATLAB function is slow for my application and I would like to have a faster solver.
1
vote
1 answer

FPGA Synchronous Bus Timing

I find myself implementing a Verilog code for interfacing a FT600 USB3.0 FIFO to a Lattice ICE40 FPGA. The question I will ask here is not specific to this parts though, as it applies to whenever you have to design a state machine and read/write…
1
vote
2 answers

Creating delay with a while loop in Matlab

As a student I am currently working on a Matlab Simulink project. I am quite new to using Matlab/Simulink (few weeks). I want to implement and run a Matlab “.m” file with which I can open Simulink and start the simulation. The aim is to do a 24h…
user6299653
1
vote
2 answers

How to emulate jitter WITHOUT packet reordering, using TC and NETEM?

Apparently NETEM uses tfifo, which queues packets based on time to sent. This results in jitter causing packet reorder. For example the following line will cause packet reordering*: tc qdisc add dev eth0 root handle 1: netem delay 10ms 100ms NETEM…
kakhkAtion
  • 2,264
  • 22
  • 23
1
vote
2 answers

Alert delay - iOS swift

i'm creating a game, whenever the user answers correctly or the time is done an alert will be presented. im using SweetAlert class from GitHub. a sound will be played just before the alert get presented. im facing an annoying problem. i keep getting…
Ali Alebrahim
  • 617
  • 1
  • 9
  • 25
1
vote
2 answers

Adding delay in data acquisition in labview

(Sorry I was not able to post picture as my reputation level is below 10) What I wanted to do is, I want my laser displacement daq to start acquiring data after one second after the another daq acquisition starts acquiring data. I am not able to…
Biswas
  • 13
  • 1
  • 3
1
vote
2 answers

Keep output order while waiting between AJAX API calls

I have a jQuery script that calls a web API to get a JSON formatted output. The API is designed for a small number of consecutive calls. I need to get a larger amount of data from the API, but I don't want to send the inputs manually a few by few…
Joudicek Jouda
  • 792
  • 2
  • 13
  • 30
1
vote
1 answer

In Swift, how can I change the image on a button and change it back after the user has seen the original (ie. flipping a card over)?

sender.setBackgroundImage(imageArray[index], forState: .Normal) sleep(2) // wait before you flip back over sender.setBackgroundImage(cardBack, forState: .Normal) The sleep seems to stop the image from completing its load. How can I wait…
DumbBlonde
  • 58
  • 6
1
vote
0 answers

Firefox delay when scrolling from parent to child

In firefox only, I noticed that when a parent and child both have overflow: scroll, there is a delay of a few seconds when scrolling from one to the other before the second element registers that it should continue the scroll. You can see an example…
Martok11
  • 261
  • 1
  • 4
  • 9
1 2 3
99
100