Category "timer"

Update Label Text with Timer Values

I know there are a lot of answers out there about similar issues, but it seems all of them are don't fit to my problem. And I am new to Swift and my head is bur

How to write a countdown timer in JavaScript? [closed]

Just wanted to ask how to create the simplest possible countdown timer. There'll be a sentence on the site saying: "Registration closes

Timer is not worked in background flutter

This code is not printed, when app go to background in iOS. Timer.periodic(Duration(seconds: 1), (timer) { print('timer'); } I need to save state to database a

Unable to update value: tween of TweenAnimationBuilder Flutter

I am trying to show countdown timer in my project app. First when user open a screen they can choose the duration of count down time by showing the radio button

How can I execute a function during the count-down timer?

I want to collect some real-time values during a time period and then proceed accordingly. Below is the code of java android studio. However, I cannot find any

Stopping timer at end of block using javascript

I am new to this. I have a Qaultrics survey consisting of different blocks; each block with its own timer. What I want to achieve is the following; if participa

Stopping timer at end of block using javascript

I am new to this. I have a Qaultrics survey consisting of different blocks; each block with its own timer. What I want to achieve is the following; if participa

How to call a function at periodic interval that takes in an object as argument in C++?

I want to execute a function at periodic interval that takes an object as argument. I tried this answer: https://stackoverflow.com/a/72226772/13798537 that call

Arduino - need reassign Timer 0 overflow (TIMER0_OVF_vect) to different ISR - how?

On a generic Arduino (ATMEGA386P) -based application, I need Timer 0's overflow interrupt (normally goes to TIMER0_OVF_vect) to point to my own code, not the ex

What is the equivalent to JavaScript setInterval in C++?

The following code prints the argument passed to the function foo in every 5 second interval. function foo(arg) { console.log(arg); } setInterval(() => fo

How to keep Flutter app running on lock/sleep screen (geolocator and timer builder)?

I have a screen on my app that tracks the location (geolocator) and time with (timer_builder) when the user hits start button. When the screen locks/sleeps, it

How to make a Timer.periodic function fire right away after calling it Flutter

I'm trying to use a Timer.periodic function in flutter and it seems that when I call it, it waits for the specified duration that I put in for the time between

Javascript countdown timer should stop at 00:00

I am working on the countdown timer and I have found this code which pretty much what I need except I dont want to restart the timer when it reaches 00:00. I tr

Precise loop timing in Python

For this project I'm designing a sequencer/drummachine that should be able to send MIDI notes with a precise tempo. Example: 16 notes per 2 seconds (i.e. in mus

My timer script for minecraft is not working... lua

I have a problem with my minecraft timer script I tried to add a function that saves the time values from worlds in a document. The timer worked completly fine

Change timer at runtime c#

Iv'e created a timer using dispatcher time : time = new DispatcherTimer(); time.Interval = new TimeSpan(0, 0, 0, 0, 80); and I use it for the speed of an ob

How to close a webview app if no activity within 5 minutes?

I am asking this after long searches without help. I created a simple webview app with eclipse. (Sometimes – app opens a web browser depending on the ur

How do I round console.time logs?

When I use console.time and console.timeEnd to measure the execution speed of a function or code snippet in JavaScript it prints this to the console: timer: 146

STM32 HAL Library RTC Alarm

I am having a problem about RTC Alarm configuration. First of all, I tried example code which is provided by Cube, and It works. But in my code, it doesn't work

STM32 HAL Library RTC Alarm

I am having a problem about RTC Alarm configuration. First of all, I tried example code which is provided by Cube, and It works. But in my code, it doesn't work