Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
124 views

I tried setting the SynchronizingObject like this: timer.SynchronizingObject = this;//The Window but VS told me I need an explicit cast. So I did that and the error went away. timer....
ispiro's user avatar
  • 28k
4 votes
2 answers
158 views

When my application starts, I launch an animation. Now I would like to switch to another component (navbar) after 30 seconds. In my research, I saw that the delay function from the Kotlin Coroutines ...
Yann Djomo's user avatar
4 votes
1 answer
130 views

I have the following program that just runs a timer for 5 seconds and has a signal handler. #include <boost/asio.hpp> #include <chrono> #include <iostream> #include <signal.h> ...
Pavel Krasnopevtsev's user avatar
4 votes
4 answers
357 views

I have a WPF project, and in some of the async event handlers in the WMain.xaml.cs I am using the Task.Delay method to suspend the execution of the handler. Example: private async void Window_KeyDown(...
Theodor Zoulias's user avatar
0 votes
0 answers
26 views

I have an issue with the Lightness setup server set cb being triggered without a connected device and is not internally called in my code. Yet for some reason the set cb is triggered every time my ...
Dries Vandenbussche's user avatar
2 votes
1 answer
112 views

I am using MPLAB X IDE version 5.43 to develop an embedded project for a PIC18F8722 microcontroller. It has a timer TMR0 which can be configured to be 32 bits. I had lots of statements: TMR0L = 0; ...
Guille's user avatar
  • 472
0 votes
1 answer
103 views

I want to implement just a simple timer which runs in background. For this purpose I have wrote it as a foreground service special use (its use does not fit the existent foreground services). I ...
rsp's user avatar
  • 109
0 votes
0 answers
72 views

I'm trying to make a terminal quiz that has a timer running in the background while you answer the question, which, once finished, overrides the input if it hasn't been filled. I've tried putting the ...
Paint_thetownred154's user avatar
0 votes
1 answer
60 views

The actuator endpoint /actuator/metrics/http.server.requests can exhibit this informations: { "name": "http.server.requests", "baseUnit": "seconds", "...
Figurinha's user avatar
  • 111
1 vote
1 answer
88 views

So I want to use a capture compare to measure an input frequency 0.1 Hz to 100 kHz. The peripheral clock is set to 32 MHz to cover the full range and maximise the speed of calculations. At lower ...
Paul S's user avatar
  • 11
1 vote
1 answer
67 views

Let's say I have a list of objects that represents readings from a GPS or a temperature sensor or something like that. Each object contains a DateTimeOffset property with the time of the reading (not ...
patsy2k's user avatar
  • 745
0 votes
2 answers
86 views

i am trying to use a countback from a certain date, and want it to read something like (100d, 10hrs, 10sec). the countback does this fine, except it reads as (-100d, -10hrs, -10sec). is there a way to ...
amouru's user avatar
  • 17
1 vote
1 answer
165 views

I am using a Nucleo-G070RB with STM32CubeIDE and trying to do some testing for a project with the input capture. The timer callback doesnt get called though. The circuit is simple, I just want to get ...
thunderbootyclap's user avatar
0 votes
1 answer
125 views

I have a timer within Excel VBA code which did run smooth untill 6 weeks ago. Please see the code below. I use this timer in a workbook. I use 2 identical copies of this workbook (with different names)...
user2165379's user avatar
0 votes
1 answer
81 views

I comeback with an error BC30590 the event Load can't be flound. I want to display date and time on a mMain form This is the code but is not working. Thank you very much. Public Class MainForm ...
Manny Somarriba's user avatar
2 votes
1 answer
66 views

I'm working on a project that needs 3 pwm outputs. I'm already tried with timer 2,3,4, and they work fine with my library. But I wanted to port my pwm library to timer 1 and now I see that A8, A9, A10 ...
ALI's user avatar
  • 31
0 votes
1 answer
65 views

In the code below, I receive the error - Type 'Timer' has no member 'scheduledTimer' - which I thought was an import issue but seems to be constant despite the results. How can I remove this error ...
Train Lover's user avatar
1 vote
0 answers
56 views

Preface: First time asking a question, please take it easy with the "YOU SHOULD FORMAT YOUR QUESTIONS THIS WAY!" Question: Why does this happen? I'm programming an esp32 S3 dev module using ...
yhq80's user avatar
  • 11
1 vote
1 answer
42 views

How would I make it so that the car repaints continuously after pressing the start button and the start button doesn't have to be clicked multiple times for the car to move. // Initialize the timer ...
Aejt's user avatar
  • 11
0 votes
0 answers
57 views

I am trying to make the simplest timer program in C. My attempt is as follows: #include <stdio.h> #include <time.h> int main() { char c; time_t start, end; long int day, ...
Vinayak Deshmukh's user avatar
1 vote
0 answers
23 views

I'm developing an English language test web application using Streamlit Cloud. I'm trying to integrate a JavaScript timer to handle page transitions after a set time, but I'm encountering persistent ...
dd d's user avatar
  • 11
1 vote
0 answers
106 views

I am trying to build a cross-platform threaded timer function in C++. Here is what I have so far (posted also in Statically linked pthread and terminate called after throwing an instance of 'std::...
sdbbs's user avatar
  • 5,948
1 vote
0 answers
81 views

I’m building a workout app in React Native with Expo, and I need to implement a rest timer that works even when the app is in the background or the phone is locked. When the timer completes, a ...
Mark.'s user avatar
  • 59
1 vote
1 answer
150 views

I am trying to get a hardware timer in an ESP32 to start and stop based on states in a FSM.I have read quite a few ESP32 Timer Howtos, and I am still not getting it to work. The timer functions ...
user1045680's user avatar
1 vote
2 answers
45 views

I want to multiply my prefab (bandit) every few seconds, but if I remove my prefab in the hierarchy it is no longer spawned. I put this in my project view as prefab but this doesn't seem to work. The ...
Romy Lambrechts's user avatar
-1 votes
1 answer
72 views

My code is: import random from inputimeout import inputimeout, TimeoutOccurred # todo inputs b = input("press enter to start") lowest_numb = input("lowest number") ...
user29961513's user avatar
1 vote
1 answer
83 views

I’m working with Vue.js right now, and I’m trying to figure out how to change the color of an element after a few seconds. I’ve looked online and tried asking AI for help, but nothing really works, ...
haakonsollund's user avatar
1 vote
0 answers
56 views

I have a Delphi 12 app that launches several threads that execute a task, that is, the same task repeated in N threads, there are no critical sections, no blocking or any other complications. Inside ...
Robe79's user avatar
  • 69
0 votes
1 answer
138 views

I'm a Godot newbie. I'm making a top down zombie shooter game just to explore the world of game dev. While trying to make automatic rifle, I found that it shot very inconsistently. How I did it was I ...
oliver james's user avatar
2 votes
2 answers
418 views

I'm facing an issue with the update event triggering in STM32G4 TIM1. I've configured TIM1 to generate PWM signals and set the update event to Center-Aligned Mode 1. However, I've noticed that the ...
amirparto's user avatar
0 votes
0 answers
160 views

I have a replay block (in simulation setup) in CANoe that contains a 2-hour measurement. However, I only need two certain parts of this measurement and I don't want to play the entire 2-hour recording ...
NewHere's user avatar
0 votes
1 answer
165 views

I have an inactivity timer that keeps checking for inactivity throughout the app. The problem is, when message box is open, the timer is not ticking and checking for inactivity as long as the ...
nikhil's user avatar
  • 1,764
0 votes
0 answers
27 views

Problem Statement: In my Flutter-based Android app, I’m implementing a timer feature, but alarms are unreliable when the device is locked for a long time. Sometimes they ring late, and sometimes they ...
Nak Tp's user avatar
  • 1
1 vote
0 answers
89 views

I'm currently investigating a crash scenario that is caused by performing a Boost yield inside a C++ catch block. Here's a minimal reproducible example that leads to a crash. Notice the following ...
Zohar81's user avatar
  • 5,214
1 vote
1 answer
62 views

The problem: if I smash the button, I ended up with multiple timers. lateinit var timer1: CountDownTimer ... Button(onClick = { timer1 = object: CountDownTimer(20000000, 1000) { ...
rivercity's user avatar
  • 386
0 votes
0 answers
30 views

Problem I'm developing a Flutter application with multiple simultaneous timers. These timers need to keep running correctly even when the user: Navigates away from and back to the page Closes and ...
Anderson André's user avatar
0 votes
1 answer
376 views

I am forced/bound to use python 2.7. I have created a systemd timer (and system.service of course) where the timer should run (24/7) every 2.5 hours past the hour. So starting at 00.00, 02:30, 05:00, ...
ni_hao's user avatar
  • 438
1 vote
1 answer
64 views

Timer error 1 in STM8S003F3P I am writing code to create overflow 1s = Timer 1 to reduce the remaining_sec variable from 60 to 1. But the Timer often hangs for a while at random times. For example, ...
thanh cong's user avatar
0 votes
0 answers
41 views

I am trying to enable periodic APIC Timer in x86 architecture based 64 bit OS. void apic_timer_init(uint32_t frequency) { disable_interrupts(); // Ensure APIC is enabled (set Spurious ...
baponkar's user avatar
  • 466
0 votes
1 answer
64 views

I want to create a 24 hour sale timer and display it inside button. I am using this code but don't know how to stop this timer. This is my code. In this example I use 35 second to test this faster: ...
user1342352532's user avatar
1 vote
1 answer
438 views

Hi I have been working with RTOS environments for some time now (FreeRTOS and Zephyr) and I was wondering if, generally speaking, RTOS timers are considered more lightweight than threads. I am ...
First User's user avatar
1 vote
2 answers
100 views

I am trying to control all 4 TIM4 pins for PWM signal using DMA. Can I send data to each pin with single DMA stream ? When I setup the pins and DMA in STM32 IDE it links the TIM4 Channel 1 pin to DMA1 ...
Ondřej Dušek's user avatar
1 vote
1 answer
66 views

below is where the error may occur Here is my main.lua and I note the place where I think the error is. What I can't figure out is why this sentence will return a number value? I'm learning Downwell's ...
Russellwhatever Yang's user avatar
0 votes
0 answers
80 views

I have a custom Timer class in C++ that uses std::async to run a timer in a separate thread. The problem I'm facing is that when I call start() on the same Timer object consecutively with no delay, ...
sleepyhead's user avatar
0 votes
0 answers
19 views

I'm making an app for guitar fretboard practice/memory using PySide6. The app has an "Auto Mode" feature (A checkbox) that uses a QTimer to display new "questions" at regular ...
waterstyle's user avatar
1 vote
2 answers
119 views

The central part of my App is a timer. Thus far this was the Code (taken out of the main Codebase to be minimum reproducible): import SwiftUI struct TestView: View { @State var countdownTimer = ...
Sphere's user avatar
  • 37
2 votes
5 answers
530 views

I'm trying to create a high-frequency polling loop in C#, but I've issues with accuracy and CPU usage. Example 1: The loop sleeps for ~15.6ms, instead of the specified 1ms per iteration. I discovered ...
justpen's user avatar
  • 306
0 votes
0 answers
57 views

I'm working on a watchOS timer app that needs to run for 3 1/2 minutes while showing countdown numbers. I think that I've discovered that there's nothing to do with the watch dimming- that's a system ...
Dribbler's user avatar
  • 4,751
1 vote
1 answer
79 views

I have found several pieces of code where refcount_inc is called after the mod_timer. E.g. this one: static int ip_frag_reinit(struct ipq *qp) { unsigned int sum_truesize = 0; if (!mod_timer(&...
dsk's user avatar
  • 13
1 vote
1 answer
155 views

I am having some problems with timers: I cannot identify the reason why this is not working properly: use std::sync::{Arc, Mutex}; use timer::Timer; struct Counter { value: i32, } impl Counter {...
Umberto Gotti's user avatar

1
2 3 4 5
394