Questions tagged as 'timer'

1
answer

How to make the application wait for a while?

It is common to have situations that we need to delay the execution of the code for a period, either to show or delete a message or something visual soon after, either to try something again, wait for something in a test or something creative th...
asked by 09.09.2015 / 16:55
3
answers

How to make timer in JavaScript

I need help to make a timer for a page, and it must be different for each difficulty of a game, for example, for easy mode has 1 min, for intermediate has 4 min, and for difficult 8 minutes .     
asked by 15.05.2016 / 13:16
1
answer

Using features of the Timer class (System.Timers) is a Windows service?

I need to do a check in the database once a day . I'm thinking of using the class Timer (System.Timers) . Will the time contactor feature burden / slow down other system services? Is this solution advisable within a Windows servi...
asked by 27.08.2014 / 22:16
1
answer

Difference between scheduleAtFixedRate and schedule in the ScheduledExecutorService class

What is the difference between scheduleAtFixedRate and schedule ? I'm developing an app on Android that I want to have a delay of 50 minutes before starting an action and repeat that same action in the next 50 minutes, but I'd li...
asked by 12.02.2015 / 16:32
1
answer

How 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 a fade in the image. Well, the important thing is that I do this fade in a certain time in milliseconds, so I did the routine...
asked by 19.02.2014 / 17:58
1
answer

timer.swing delay

I'm doing a little game that flashes some orderly images in the frame, my goal is for them to blink in order, but they are blinking all together: public class Logica { List<Integer> seqAlea = new ArrayList<Integer>(); List...
asked by 22.11.2015 / 22:06
4
answers

Call function at each time interval efficiently

I have a question, I'm making a game server and I need a specific function to be run every 10 seconds. I know that Thread.Sleep() exists (in combination with while(true) ), but it does not seem to be a good option I've heard o...
asked by 01.09.2016 / 18:25
2
answers

Refresh the label without crashing the program

I need to update my label at all times when I use timer it updates, but it crashes the program Program.cs public static String Uso() { ManagementClass mc = new ManagementClass("win32_processor"); ManagementObjectColle...
asked by 11.11.2015 / 18:04
1
answer

Stopwatch - Timer

I made a stopwatch (ie a timer) that should be executed when a certain button is clicked. I was able to do the timer, but I can not shut it down. After calling it is timing "forever" rs. I would like you to help me. Code: package controller...
asked by 19.09.2015 / 00:25
1
answer

Insert perl timer

I need to put a timer in that perl below: It works by firing emails in a row to the end of the mailing list. Example if the list has 1 thousand emails it will fire e-mail until the end. I would like to put a timer in this code EX: fi...
asked by 06.04.2018 / 20:25