Most voted "timer" questions
62 questions
Sort by count of
- 
		16 votes1 answer10829 viewsHow to make the app wait for a while?It is common to have situations that we need to delay the execution of the code for a period, whether to show or delete a message or something visual shortly after, or to try something again, to… 
- 
		7 votes1 answer625 viewsDoes using Timer class features (System.Timers) cost a Windows service?I need to do a database check once a day. I’m thinking of using the class Timer (System.Timers). The time contactor feature will burden/lock the other system services? This solution is advisable… 
- 
		7 votes3 answers11228 viewsHow to timer in JavascriptI need help to make a timer for a page, and it has to be different for every difficulty of a game, for example, for easy mode it has 1 minute, for intermediate it has 4 minutes, and for hard 8… 
- 
		6 votes1 answer732 viewsDifference between scheduleAtFixedRate and Schedule in the Scheduledexecutorservice classWhat’s the difference between scheduleAtFixedRate and schedule? I am developing an Android app that I want to be 50 minutes late before starting an action and repeat that action in the next 50… 
- 
		4 votes1 answer2247 viewsHow to stop a Thread for a certain time without using a Timer?Explanation: Next, I have a TThread running parallel to Main Thread. And I have a routine to give fade image. Well, the important thing is that I realize this fade in a given time in milliseconds,… 
- 
		4 votes2 answers995 views
- 
		4 votes1 answer181 viewsDelay of the swing timer.I’m making a little game that flashes some images in order on the frame, my goal is that they blink in order, but they’re all flashing together: public class Logica { List<Integer> seqAlea =… 
- 
		3 votes0 answers2256 viewsRegressive chronometer but when it reaches zero starts again?I adapted a regressive timer that I found here on the net and adapted to what I want. It is to be used in a cycling race and in a time trial stage where cyclists depart every 2 minutes. It works but… 
- 
		3 votes1 answer1450 viewsStopwatch - TimerI made a chronometer (better to say: a timer) that should be executed when a certain button is clicked. I managed to make the timer, but I can’t close it. After calling it he is timing "forever" rs.… 
- 
		3 votes4 answers5604 viewsCall function at each time interval efficientlyI have a question, I am making a game server and I need a specific function to be rotated every 10 seconds. I know there’s a Thread.Sleep() (in combination with a while(true)), but it doesn’t seem… 
- 
		3 votes1 answer52 viewsHow to disable a Ttimer object when clicking a button that opens another form and re-enable it when the other form is closed?Good morning. I have a timer running on a form that calls several others. When this form opens another the timer should be stopped and when the form that was opened is closed the timer should be… 
- 
		3 votes2 answers1349 viewsRecord runtime in pythonIn Python, I need to do something like: timer.start() ***Imagine um código de várias linhas aqui*** timer.stop() print("Tempo de execução: " + timer) It can be in seconds, minutes anything, someone… 
- 
		3 votes1 answer391 viewsDoubt with ThreadI have a form where I have a Thread to update some images, calling her using a timer interval 19000, but it’s generating me the following ERROR only when called by timer. Project Sistemaa.exe Raised… 
- 
		3 votes2 answers282 viewsLike timing an Interstitial ad?How to Time an Interstitial Ad? Example:. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); interstitialAd = new InterstitialAd(Main.this);… 
- 
		3 votes1 answer50 viewsInsert perl timerI need to put a timer on that perl below: It works by firing email followed to the end of the mailing list. Example if the list has 1 thousand emails it shoots email by email until finished. I’d… 
- 
		2 votes1 answer1967 views
- 
		2 votes2 answers76 viewsDetermining when it will be executedExample: var horaAtual = new Date(); var horaInicio = new Date("Fri Apr 01 2016 23:30:00"); //Quando(horaAtual == horaInicio) //execute algo... I want a function to be executed when it reaches a… 
- 
		2 votes1 answer758 viewsWrite to a label when it loads with the formWell, I have a program that needs me to write using Abels, however these only work, and actually write when they are clicked, I would like someone to explain to me how I should proceed to be able to… 
- 
		2 votes1 answer495 viewsTask.Run locking inside a "tick" (Forms.Timer)In my application, I created a "Timer" (System.Windows.Forms) that runs every 1 second. In the "tick" event, I placed a await Task.Run. For some reason the tick stops running after a while (because… 
- 
		2 votes1 answer159 viewsRegex - Very high replace process timeRecently after developing a process, I saw that this was taking exorbitant 5~6min to be executed, something that should take at most 2s, so I started debugging the code with timers to know what… 
- 
		2 votes1 answer585 viewsDoubt when using Timertaskfollows my example of class use TimerTask and my problem is this: I want to make sure that every day the 12 hours is done this routine automatically. Currently nothing is happening, is this missing… 
- 
		2 votes1 answer522 viewsHow to use the TIMER class in a method with Math.max and Math.minI’m on a kind of ambitious project to create my little math game (which I found better than a simple calculator) in just one JFrame, methods only, without using any other class in the package...… 
- 
		2 votes1 answer817 viewsJava threaded timerGood night, you guys! I am developing a multithread client/server system. Multiple clients connect and when they send the string "Ocupada" 3 times, the code leaves the while, starts the time count… 
- 
		2 votes2 answers3102 viewsHow to put a wait time for the code to run?I’m playing a little game of memory, more like learning in Java. I will present the code and then explain the question. private void testar (ImageView img, int resultado1, int resultado2) {… 
- 
		2 votes1 answer17 viewsNegative timer when arriving at the final dateI am using a timer that is working well, the only problem is that when it Zera it starts to count on the negative and I want it to stay stationary at zero, follows the code: <script> var… 
- 
		1 votes1 answer274 viewsPrevent image blinking when timer is usedI have a background image in my application, but it gives the impression of blinking due to the use of a Ttimer that the application has. I tried to change the interval of Ttimer but the problem… 
- 
		1 votes0 answers68 viewsTimertask with long intervalsI intend to develop an app that when setting a certain time, schedule a task with timertask to be executed 50 minutes later and soon after that 50 minutes, repeat by 50 minutes in a row. But it… 
- 
		1 votes0 answers138 viewsError running Timertask JavafxI am trying to perform a task every 1 minute. The task is executed but when it arrives at the right minute to perform the action of this exception: java.lang.Illegalstateexception: Not on FX… 
- 
		1 votes0 answers725 viewsTimertask calling method twiceI have a TimerTask which calls a method every 1 minute, but the method is called twice. This method checks some factors and sends an email, as the method is called twice the email is sent twice.… 
- 
		1 votes1 answer854 viewsTimers on Node.js: their differences and their relationship to process.nextTickWhat’s the difference between setInterval, setTimeout and setImmediate in Node.js? I know that setTimeout creates a single timer, such as a delay, and the setInterval creates a gap. But… 
- 
		1 votes0 answers932 viewsTimer - run at set timeI am developing a Windows Service, where every day at 18:00 hours, I need an event to be triggered. So I’m using the class Timer. I managed to trigger an event by defining the property Interval,… 
- 
		1 votes2 answers681 viewsC# - Windows Service only runs onceI am developing a windows service to run every 10 minutes, it inserts some values in the database, but I noticed that the routine only runs once. using System; using System.Collections.Generic;… 
- 
		1 votes0 answers78 viewsHow to return when finished/keep record of the remaining time (Timer/Schedulel)?So, I’m developing a project for a game that uses RMI (client/server) and needed to manage the timeout of players' plays. For example, if a player takes more than a minute to make his or her move,… 
- 
		1 votes1 answer304 viewsTimer with active session time: Cookie expiration time - autal momentI am working with Angular and, when I store the access token in a cookie, I also save (in another cookie) its expiration time (30 minutes). I want to make a timer that shows the user how long he… 
- 
		1 votes2 answers84 viewsRandom Doubt and Periodic Activities in GolangIs there any way I can get one executed fmt.Printf(choosenCity) every 6 hours and, at each run, he chooses a different element of the Array? I even managed to get him to perform periodically after a… 
- 
		0 votes1 answer51 viewsProblem timers jsI have a web application and this one has Paginaprincipal, Paginaentidade and Paginanoticia and each of these is associated with a JS file. The goal is to start in the paginaPrincipal and past x… 
- 
		0 votes1 answer273 views
- 
		0 votes1 answer109 viewsHow do I maintain and display Countdown when leaving the app?I’m building an app to run tasks every hour, and I want to show countdown. But when I exit the app, when I return, the countdown restarts. I need that when I return to the app, the countdown is… 
- 
		0 votes2 answers1212 viewsHow to use and what is the timer function in C#?//Exemplo de uso(Que não entendi): using System; using System.Threading; public static class Program { public static void Main() { // Create a Timer object that knows to call our TimerCallback //… 
- 
		0 votes1 answer68 viewsDetermine the time of execution of the next task based on the end of the current run in Windows Service C#This is my problem. I have an application as a windows service that needs to run 15 seconds after the current job execution is finished. The task basically performs database operations and may be… 
- 
		0 votes0 answers133 viewsServer with PHP TimerI would like to use PHP to run a monitoring server, which runs periodically (Ex: hour in hour) a check, but without relying on Cron or Task Scheduler, unless it is to "start" this PHP server,… 
- 
		0 votes1 answer1354 viewsHow to make a timer in Python 3?I have to make a timer that counts x seconds, but does not stay in a loop waiting for time to pass, instead it should count the time and generate an event when closing the preset time count. I need… 
- 
		0 votes0 answers738 viewsHow to make a simple timer using Timeunit.SleepI am beginner in Java and was trying to make a mathematical game whose theme was to add the random numbers of the buttons (of course the person would have the help of the numbers 1, 2 and 5) until… 
- 
		0 votes1 answer559 viewsFire method 5 seconds after execution of previousHow to set a timer so that after 5 of sending the command EnvDados the sending of the command NovoEnvio, this within the same method? IPAddress[] IPs = Dns.GetHostAddresses(host); Socket s = new… 
- 
		0 votes1 answer282 viewsTimer in JavascriptI wonder how I can make that, the person can only vote on a project by clicking on a button every 24 hours, half a JS Timer. Example: "The person will vote, and only after a day he can vote again".… 
- 
		0 votes1 answer57 viewsProblem with TIMER insertion in Mysql table using JDBCPersonal talk! I have the following problem and I am looking for the best possible solution. The following code when running a time is saved in the tAtual (current time) string and sent to the… 
- 
		0 votes0 answers94 viewsLink timer to a buttonHello, I’m starting now to program in c++ and I’m developing a college project, it’s a periodic table. We thought of using a button for each element (118 in total). My goal is to animate the button… 
- 
		0 votes1 answer207 views
- 
		0 votes2 answers271 viewsCheck if file exists for 20 seconds C#I’m making a module that works with file exchange and the documentation asks to wait 20 seconds for the status file xxxxxxxx.However, I do not know how to implement this in C#. I was trying… 
- 
		0 votes1 answer94 viewsMethodinvoker does not update listbox C#How to implement a timer that updates a listbox in c every cycle#; Method to create the timer: private void CriaTimer() { System.Timers.Timer aTimer = new System.Timers.Timer(); aTimer.Elapsed +=…