Questions tagged as 'timer'

1
answer

Insert data into a real-time text box with Timer [duplicate]

I'm using timer as follows: System.Timers.Timer aTimer = new System.Timers.Timer(); aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); aTimer.Interval = 1000; aTimer.Enabled = true; In the OnTimedEvent method I do the...
asked by 20.10.2016 / 13:27
1
answer

Trigger method 5 seconds after running the previous one

How to put a timer so that after sending the command EnvDados , the command NovoEnvio is sent, within the same method? IPAddress[] IPs = Dns.GetHostAddresses(host); Socket s = new Socket( AddressFamily.InterNetwork,...
asked by 13.05.2016 / 16:19
1
answer

Stopwatch with wrong timing

I have a QtSDK timer, but when it starts time goes absurdly faster than normal . Here is the code below: QTime time; QTimer timer; void PlanejamentoWidget::timeUpdate(){ QTime t = ui.timeEdit->time(); ui.timeEdit->setTime(t.add...
asked by 23.02.2015 / 16:46
1
answer

Problem timers js

I have a web application and this one has MainPage, PageEntity and PageNotice and each of these is associated with a JS file. The goal is to start on the Main page and past x time go to the Entity page and past x time go to the News page. I used...
asked by 23.06.2014 / 21:50
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
0
answers

Angular 5+ Create a timer that informs, seconds, minutes, hours, etc.

Well, I need to start a timer in the application, when it enters the device page, and when I click on stop, I'll save that time information and perform specific calculations. This is the part of my functional code, here I can count the second...
asked by 01.07.2018 / 23:39
0
answers

Assertions with timers in JMETER

Good morning everyone, I have thousands of requests and two assertions in jMETER. How much does the requests, my SQL, The structure of my thread is as follows. -I'mcurrentlysimulating5,000users.-TheHTTPserviceIamtestingisanon-screenendpoint...
asked by 10.05.2018 / 17:13
0
answers

Elapsed Timer event is not running in service DLL

I created a service DLL and set up a timer for this service to run at certain intervals. But I have a lot of doubts about when I run the service through VS 2013, the service runs the first time the Elapsed of timer event is not running...
asked by 23.02.2018 / 16:15
0
answers

Server with Timer in PHP

I would like to use PHP to run a monitoring server, which periodically runs (eg, hourly) a check, but without relying on Cron or Task Scheduler, unless it is to start on that server PHP, so as well as not getting stuck the platform, I can contro...
asked by 16.10.2017 / 15:53
1
answer

How do I get to timers that were started by a C #

Hello, I'm trying to understand a situation but until then I could not solve it. Imagine that we have a class X that has a timer that is started by the constructor. Now imagine that this same class is instantiated inside a thread. By doing so...
asked by 20.09.2017 / 02:11