Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
2 answers
135 views

I'm developing a console application that periodically executes two threads: one for a tickEvent function and another for updating the console display. Currently, each thread simply blocks on a ...
Isaac Honeyman's user avatar
-2 votes
1 answer
157 views

I am trying to get response time of an Oracle query and using StopWatch to accomplish this. I am also trying to catch connection timeout and log how long it took before timeout occurred and having ...
NoBullMan's user avatar
  • 2,252
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
61 views

I'm working on a project where I use a Stopwatch for tick-based precise delays in .NET. The application works flawlessly on Windows, but when I run it on a Linux-ARM platform (e.g., Orange Pi), the ...
Gökbörü Efe Tığrel's user avatar
1 vote
2 answers
80 views

const [lap, setLap] = useState([]); function start(){ if(!isStart){ starting = Date.now() - elapsed; isStart = true; timer = setInterval(update, 1000); ...
Abhrajit Saha's user avatar
0 votes
1 answer
149 views

I'm trying to use TStopwatch from the System.Diagnostics unit, but it's not finding it. I'm getting the following error: [Error] can't find unit "System.Diagnostics" I know most of the ...
Shaun Roselt's user avatar
  • 4,464
0 votes
1 answer
42 views

I have the following stopwatch implementation import { useState, useEffect } from 'react'; import { Text, View, StyleSheet, Button } from 'react-native'; function TimerComponent() { const [isActive,...
algorhythm's user avatar
  • 3,476
-1 votes
1 answer
55 views

I would like to know how long it takes to run many code segments inside a large method. I use System.nanoTime() to record the timestamp. Afterwards, I subtract two timestamps, such as nano2-nano1, to ...
Hi computer's user avatar
  • 1,132
0 votes
0 answers
45 views

`countDown is completed, when i want to start the timer again the timer starts from the vlaue where the countDown was clciked. so, i want a solution that will help me to start the timer from the ...
Roman's user avatar
  • 1
1 vote
1 answer
63 views

I'm building a web app that has a stopwatch feature, I developed it properly but did not store data(local storage). So, when the user re-loads and closes it, it will start from 0. I want to keep this ...
Rakibul's user avatar
  • 33
0 votes
0 answers
103 views

So I'm just starting to learn JavaScript, like its syntax and logic, therefore I'm still not implementing anything on a web page, just playing with the console before doing any web development with JS....
Alej0GG's user avatar
  • 11
0 votes
1 answer
153 views

Trying to properly display currently running stopwatch time so it shows Hours:Minutes:Seconds after I press the start button. My code works only until it reaches a minute then it displays just a 1, I'...
Alex's user avatar
  • 21
0 votes
0 answers
227 views

i want to measure a method's performance and use the two different way, but the results is confused me. Method 1: new Test().Main(); public class Test { public void Main() { long ...
w jc's user avatar
  • 1
0 votes
3 answers
201 views

I found [this article] that shows how to build a stopwatch / timer and after about 15 minutes there's 5 second gap between my physical timer (good battery; physical timer goes ahead 5 seconds) async ...
Rod's user avatar
  • 15.6k
1 vote
2 answers
94 views

i've try to built stopwatch from freecodecamp tutorial, when i add feature to reset it i realize that i should click twice to play after reset it.. any answer or solution for it? btw its my first ...
Yusuf Afif's user avatar
-2 votes
1 answer
52 views

I want to make a stopwatch that count how much time it took you to enter a correct imput. Are there modules that can help with is? I have already tried using import time and import timer I am making a ...
Peter's user avatar
  • 1
1 vote
1 answer
161 views

I have written a task that runs as Scheduled (every Second). I need this scheduled method to monitor the lifetime of a bearer token. I'm new to Java and wondering if there isn't a better, more elegant ...
Martin's user avatar
  • 31
0 votes
1 answer
41 views

I am developing an app which count time of working when user click start button starts the work when click button end work, ends work. App should count time even if the app is killed or phone is down. ...
Osin94's user avatar
  • 13
0 votes
2 answers
115 views

I am trying to establish is iteration or recursion is faster in C#. However, on a simple test, I cannot seem to get trustworthy results using StopWatch. Code: internal class Program { // ...
D.Man's user avatar
  • 311
0 votes
0 answers
53 views

I've been working on a Stopwatch project with UI. I built the UI using my novice skills in TKinter. I am trying to find a way to change the text of the label which prints the new time every second. My ...
NDev's user avatar
  • 1
0 votes
1 answer
41 views

I'm trying to incorporate a stopwatch into my app and I'm using the stop_watch_timer package (https://pub.dev/packages/stop_watch_timer). My issue lies with 2 buttons I'm adding; one to add 5 minutes ...
CharlieB's user avatar
0 votes
1 answer
47 views

I want to make a stopwatch that starts while spacebar is up, and stops when spacebar is down. However, it starts right after i have stopped it because the start function is called when the spacebar is ...
Nicholas Vigo's user avatar
0 votes
2 answers
143 views

I'm seeing this very strange behavior with the Stopwatch object that I can't explain, in my code. I wrote this very simple application to reproduce the behavior and it's still there. In a brief ...
Maty's user avatar
  • 29
0 votes
2 answers
80 views

i start studying Js and i made this Stopwatch, but if i press reset, the stopwatch dont start again, unless i f5. I've tried some things but nothing seems to work, dont know what to do. I've seen ...
Cabralzz's user avatar
1 vote
1 answer
84 views

I am trying to design a perfect stopwatch. I have tried and it is working properly. But, I want the reset button to be disabled at initial stage and when the count had begin by using start button ...
GIRIDARAN T P's user avatar
0 votes
0 answers
52 views

So I am making stopwatch with c but I wanted to be able to take user input while the stopwatch is running. ` #include <stdio.h> #include <stdlib.h> #include <time.h> #include <...
Gita's user avatar
  • 51
0 votes
1 answer
124 views

I have a Blazor Server App .Net7 with a single page with this code: @page "/" @using System.Diagnostics <PageTitle>Counter</PageTitle> <button @onclick=OnCalcClick>Count&...
Eugeniy  Maksimov's user avatar
0 votes
2 answers
1k views

I am not familiar with the C# stopwatch class. I am trying to find elapsed time for a function. When I call a function again I need to get the total time since the last call. How Should I do it? I ...
Htekin's user avatar
  • 29
0 votes
0 answers
122 views

error on word byte hour [org 0x0100] I am working on a project in assembly.(stopwatch user input change style and size ) I am working in (in 16 bit assembly in emu8086). I have been working on this ...
Muhammad Hasnain Arif's user avatar
0 votes
1 answer
121 views

Doing some performance tests I find the following behavior that seems wrong or counterintuitive. Does anyone know what can be due? The following occurs: If I initialize a watch with StartNew() the ...
Sam's user avatar
  • 1,457
1 vote
1 answer
2k views

Context : Say I have a custom DisplayElapsedTime Widget which is Stateful and holds a Text Widget. With a Timer, every 1sec, the text value is updated with the current elapsed time given by a ...
Myrmillion's user avatar
0 votes
0 answers
45 views

package primer; import java.io.IOException; import org.springframework.stereotype.Component; import org.springframework.web.socket.TextMessage; import org.springframework.web.socket.WebSocketSession; ...
Artemiy's user avatar
0 votes
0 answers
375 views

Hi The stopwatch that I have made is not accurate(millisecond precision) - it is slow. How can I change that? I also would like to make timer counting down. There is literally no tutorials or any ...
wojtek's user avatar
  • 99
-3 votes
1 answer
170 views

There's a piece of code I've been fiddling with to see if I can speed it up because it definitely shouldn't take 3.8 to 4.4 seconds to process about 1400 UserPrincipals. I've used stopwatches to time ...
mvi2110's user avatar
  • 31
1 vote
2 answers
107 views

I tried to make a stopwatch in the console, but the message kept on clearing before I had time to read it. I tried increasing how long the Timeout function would go, but for some reason, it didn't ...
Mr. Biscuit's user avatar
1 vote
2 answers
2k views

I have a C# project that uses a lot of functions. I want to make a simple test with stopwatch. But I don't want to add stopwatch to every function one by one. I am looking for a way to add stopwatch ...
Gökhan AKSOY's user avatar
0 votes
3 answers
630 views

In my quest to become a JavaScript developer and as an F1 fan, I had to make a stopwatch, to track reaction time. The problem I stumbled upon, and it seems to be the case in many tutorials I've seen, ...
Dimitris S's user avatar
-2 votes
1 answer
1k views

import tkinter as tk import time timer = 0 def startTimer(): if timer == 0: time.sleep(1) elif (running): global timer timer += 1 timeText.configure(text=str(...
Gryphinx's user avatar
0 votes
0 answers
75 views

I'm building a flutter app where I want to restrict some of the users for a week and also show them the remaining time in days and hours so when the apps get close the timer should never get stopped. ...
Owais Fazal's user avatar
0 votes
3 answers
1k views

How can I properly use the Stopwatch class with an async action event that awaits calls to my database asynchronously inside an async Post method on DotNet Core ? Why To time my code and check for ...
Codingwiz's user avatar
  • 313
1 vote
1 answer
430 views

I am trying to create stopwatch for multiple users with php and javascript, i am using mysql DB for users. When i click on on user the stopwatch will start but for others it is not working. I tried ...
Tajmeel Hussain's user avatar
0 votes
2 answers
776 views

I want to make a stopwatch in JavaScript that could count milliseconds, seconds, minutes, and hours. The problem is that it seems to not go at the proper speed, meaning that when I compare it to other ...
Syntax Error's user avatar
0 votes
1 answer
739 views

I am trying to create a stopwatch app that displays lap times. Currently I have it displaying the time when the lap button is clicked. However, I want to display the difference between time a and time ...
AlexPD93's user avatar
0 votes
2 answers
111 views

So what I'm trying to do is to self replicate a Rubik's cube timer like cstimer.net What I do is detect a spacebar key press and it is meant to start a timer, however it only adds 1 millisecond at a ...
DamilolaOwonibi's user avatar
0 votes
0 answers
105 views

I've been coding a Stopwatch app in C#, but have encountered a problem. The Seconds seem to be counting in milliseconds. Code: private void timer1_Tick(object sender, EventArgs e) { ...
Ray's user avatar
  • 1
1 vote
1 answer
111 views

When you press "reset" button, the stopwatch is supposed to stop and reset, but instead it sets digits to zero, then adds one more second and ends up with 00:00:01. The same with "stop&...
Mark Pribylnov's user avatar
0 votes
1 answer
530 views

Two input field "minute" and "second" is given. The value of the "second" field can exceed 60. A stopwatch needs to be created starting from the above timings. Eg. If the ...
Vivek Joshi's user avatar
1 vote
2 answers
950 views

I have a working stopwatch. When I click start button the stopwatch is starting and when I click pause button the stopwatch is paused. What I would like is when I refresh my browser to keep the ...
NoName84's user avatar
  • 403
1 vote
1 answer
658 views

My stopwatch is running 0.5x slower than actual time (e.g. while the real time is 1 minute, the stopwatch shows ~34 seconds). Here is the Provider code: class TimerState extends ChangeNotifier {   ...
chrisrn's user avatar
  • 13
0 votes
1 answer
62 views

I'm new to python, so I was following a few tutorials to understand how to do something I liked to do. A stopwatch returning not only the time passed but also the time it started and finished. My plan ...
Joel's user avatar
  • 13

1
2 3 4 5
17