Questions tagged as 'timer'

1
answer

Avoid image blinking when timer is used

I have a background image in my application, but it gives the impression of blinking due to the use of Ttimer that the application has. I tried to change the interval of Ttimer but the problem persists. Any tips on how to sol...
asked by 03.02.2015 / 19:35
1
answer

How to make a timer in Python 3?

I have to make a timer that counts x seconds, but that does not stay in loop waiting for the time to pass, instead it must count the time and generate an event when closing the count of the pre-defined time. I need to know if there is a module i...
asked by 13.06.2018 / 22:15
2
answers

How 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 // method once every 2000 millisecon...
asked by 10.06.2017 / 13:52
1
answer

How to tell if a System.Timers.Timer is running? [closed]

I need to know if a timer is running, if it is not, I will start it,     
asked by 15.07.2016 / 02:39
2
answers

Display a div for a given time Jquery

I would like to know, if you have how I present the contents of a div at a given time. Well, in this case I'm inserting an html into the div and after a while I'd like it to disappear, have you any way to do that? <div id="alerta">...
asked by 23.10.2017 / 19:25
1
answer

Determine the time of execution of the next task based on the end of the current execution in Windows Service application C #

Here's my problem. I have an application as a windows service that needs to be executed 15 seconds after the current execution of the task is finished. The task basically performs operations on the database, and it may take more than 15 secon...
asked by 26.09.2017 / 22:39
2
answers

Check if file exists for 20 seconds C #

I'm doing a module that works with file sharing and in the documentation it asks to wait 20 seconds for the status file xxxxxxxx.sta, however, I'm not sure how to implement this in C #. I was trying something on this line, but it seems to run as...
asked by 21.08.2017 / 20:23
1
answer

MethodInvoker does not update listBox C #

How to implement a timer that every cycle updates a listbox in C #; Method to create the timer: private void CriaTimer() { System.Timers.Timer aTimer = new System.Timers.Timer(); aTimer.Elapsed += OnTimedEvent; aTimer.Interval =...
asked by 13.09.2017 / 22:41
1
answer

How do I maintain and display CountDown when I quit the app?

I'm building an application to run tasks every hour, and I want to show countdown. But when I exit the application, upon returning, the count resumes. I need you to return to the app, the count is continuing. Can anyone help me?     
asked by 26.03.2017 / 15:29
1
answer

Problem with inserting TIMER into MySQL table using JDBC

Speak up! I have the following problem and I'm looking for the best possible solution. The following code when running a time is saved in the CurrentTime (current time) and sent to the database for the time column. This current time is update...
asked by 15.08.2016 / 01:21