Questions tagged as 'timer'

2
answers

C # - Windows Service only runs once

I'm developing a windows service to run every 10 minutes, it inserts some values into the database, but I noticed that the routine only runs once. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data;...
asked by 10.07.2017 / 22:00
1
answer

Task.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 put a await Task.Run. For some reason the tick stops running after a while (because it does not print the date and time on the cons...
asked by 01.09.2015 / 21:55
1
answer

Timer with active session time: Cook time expiration time - autal moment

I'm working with Angular, and when I save 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 still has to log in, but I'm having some difficultie...
asked by 02.01.2019 / 11:59
1
answer

Difference setTimeout, setInterval, and setImmediate

What is the difference between setInterval , setTimeout and setImmediate in Node.JS? I know that setTimeout creates a single timer, like a delay, and setInterval creates a range. But what about setImmediat...
asked by 22.04.2018 / 15:47
0
answers

How do I return when I finish / keep Timer / Schedulel?

So I'm developing a game project that uses RMI (client / server) and needed to manage the players' time-out. For example, if a player takes more than one minute to make his or her respective play, he loses. The plays run through a loop, so I...
asked by 24.09.2018 / 16:14
0
answers

Limit amount by time

How can I limit a certain resource in PHP to run after a certain amount of time defined by me? Example: I have a button, I click on it and it sends 50 users to a field named count in my table, and also seto a time in a field called...
asked by 16.11.2017 / 06:21
0
answers

Timer - run at defined time [duplicate]

I'm developing a Windows Service, where every day at 18:00, I need an event to be triggered. So I'm using the Timer class. I was able to trigger an event by setting the Interval property, that is, every 120 seconds, for exampl...
asked by 22.04.2017 / 23:19
0
answers

TimerTask calling method twice

I have a TimerTask that calls a method every 1 minute, but the method is called twice. This method checks for some factors and sends an e-mail, as the method is called twice, and the e-mail is sent twice. Does anyone know where the proble...
asked by 17.07.2015 / 14:53
0
answers

Error running JavaFx TimerTask

I'm trying to run a task every 1 minute. The task is executed however when it arrives in the right minute to perform the action of this exception:    java.lang.IllegalStateException: Not on FX application thread;   currentThread = Timer-0...
asked by 16.07.2015 / 20:40
0
answers

TimerTask with long intervals

I intend to develop an app that, when setting a particular time, scheduling a task with the timertask to run 50 minutes later and immediately after that 50 minutes, repeat for 50 minutes periods successively. But it happens that after 50 minutes...
asked by 12.02.2015 / 23:58