timer Questions

3

I have an EJB timer schedule in a singleton EJB running inside a Wildfly 10.10: @Singleton @Startup @ConcurrencyManagement(ConcurrencyManagementType.BEAN) public class MySingletonBean { public m...
Sinasinai asked 25/10, 2017 at 4:58

14

I'm trying to make a simple script for a game, by changing the time of day, but I want to do it in a fast motion. So this is what I'm talking about: function disco ( hour, minute) setTime ( 1, 0 )...
Cottrell asked 1/8, 2013 at 7:23

3

Solved

I have a box thats using ntp and we have several java programs running on them that display a clock. The problem we are having is if anything kicks the system time backwards all our timers that do ...
Cephalo asked 12/8, 2010 at 16:35

9

Solved

I have a loop that iterates until a job is up and running: ticker := time.NewTicker(time.Second * 2) defer ticker.Stop() started := time.Now() for now := range ticker.C { job, err := client.Job(...
Novation asked 21/9, 2015 at 22:35

6

Solved

I have the following code: class firstVC: UIViewController { var timer : Timer? func scheduledTimerWithTimeInterval(){ timer = Timer.scheduledTimer(timeInterval: 60, target: self, selector: ...
Metts asked 6/10, 2017 at 17:59

1

Solved

My exercise app uses a foreground service to keep an accurate timer going when a user turns off the screen whilst exercising. There's both a countdown and indefinite count-up timer option. This wor...
Infatuated asked 9/12, 2023 at 10:30

9

Solved

Possible Duplicate: How do I measure how long a function is running? I have an I/O time-taking method which copies data from a location to another. What's the best and most real way of calc...
Kinfolk asked 24/12, 2012 at 9:30

5

How do I create a timer in Godot which destroys the script's object after a given amount of time? I am looking to remove bullets from a game after a while to reduce lag.
Epifaniaepifano asked 14/5, 2022 at 17:58

8

Solved

I'm writing a Windows service that runs a variable length activity at intervals (a database scan and update). I need this task to run frequently, but the code to handle isn't safe to run multiple t...
Opisthognathous asked 26/3, 2009 at 1:33

33

I have created and installed a service a couple of times. Initially it was working fine, but after some changes in the service Code it start giving the error when I restart the service in Services....
Aviva asked 15/6, 2014 at 9:36

3

Solved

I want to create wpf countdown timer that display the result as hh:mm:ss into textbox, I would be thankful for anyone help.
Wolff asked 25/5, 2013 at 9:54

4

I'm trying to use Go's time.Timers to schedule tasks that need to be run in the right order with a precision in the order of half a millisecond. This works perfectly fine on OSX and on Linux, but f...
Chromogenic asked 8/6, 2016 at 15:28

2

Solved

I am using TStopWatch for high-precision timekeeping in Delphi 10.2 Tokyo. This website: https://www.thoughtco.com/accurately-measure-elapsed-time-1058453 has given the following example: var s...
Ghat asked 10/5, 2018 at 18:46

4

Currently working on a project that requires two timers on one page. The timers need to have a start button and both have different timings (i.e. timer1 lasts 10 secs and timer2 lasts 20). Here's t...
Under asked 1/4, 2014 at 20:51

23

Solved

I want to repeatedly execute a function in Python every 60 seconds forever (just like an NSTimer in Objective C or setTimeout in JS). This code will run as a daemon and is effectively like calling ...
Demmer asked 23/1, 2009 at 21:7

7

Solved

I am trying to develop a timer app in Flutter that includes multiple countdown timers for different tasks. However, I'm facing an issue where if I start a timer and then press the back button, the ...
Heartrending asked 25/12, 2019 at 16:27

8

I am working on a C# Windows Forms application where I need the method to pause for 30 seconds until it continues on to the next line of code. I have tried Thread.Sleep() which wasn't suitable for ...
Archaize asked 6/12, 2012 at 9:33

4

Solved

There's applications I'd like to write where I'd like some things to occur on a schedule. Polling a URL for updates every few minutes seems to be a fairly common use case. In this particular case, ...

1

I want to show a hint after the user hasn't touched a screen for 30 seconds. For this restartInactivityTimer() function needs to be called whenever the screen is touched. Is there a way to discover...
Astounding asked 30/9, 2023 at 9:42

2

Solved

I have already read some questions/threads (e.g. this and this) about how to stop the VBA Application.OnTime procedure, but I just can't get it to stop! I am using it to pull some data every x seco...
Tremann asked 15/11, 2013 at 13:53

5

Solved

We call startTimer function to start a timer. When we wanted to stop it we call stopTimerTest function but after we called stopTimer function the timerTestAction keeps firing. To check the timer co...
Urita asked 17/10, 2016 at 8:21

3

Solved

I'm new to Dart/Flutter and would like to build a simple app where a LinearProgressBar gets updated every second. Without getting too much into the actual code, I have the following setup working....
Eglanteen asked 12/11, 2017 at 15:7

4

I'm using CoreOS and SystemD timers to run my reports... I have certain monitoring reports that need to run every 3 hours for the next 12 hours, running on the half hour. That's pretty simple to i...
Oraorabel asked 31/12, 2015 at 16:58

4

Solved

Ive been looking to see a method to see if a CountDownTimer is running or not, but I cant find a way to, any help would be greatly appreciated if (position == 0) { mCountDown = new CountDownTime...
Darreldarrell asked 30/1, 2014 at 8:38

5

Solved

I have been trying to accomplish two main goals that I'm having a headache with. Sorry if it's a simple fix, I am a still bit new to Swift/SwiftUI. Trigger an action after a certain time has elaps...
Natale asked 10/1, 2020 at 13:15

© 2022 - 2025 — McMap. All rights reserved.