Tagged Questions
4
votes
1answer
74 views
5
votes
1answer
113 views
Inefficient Stopwatch
I have just finished a simple GUI stopwatch, but some of its code looks like it needs replacing. This is the code:
Clock class (extends Thread):
...
6
votes
1answer
196 views
Program to shutdown computer after a certain time
I'm trying to make a program that will shutdown my computer after a certain time that I will input via GUI. I'm wondering if I did it the correct way.
Also, will this slow down my computer while it ...
4
votes
1answer
435 views
Simple Multithread Timer
This is a very basic timer that can support multithreading with std::thread and std::chrono.
The timer has the classic ...
6
votes
2answers
1k views
Portable periodic/one-shot timer implementation
I have implemented a class that provides portable one-shot or periodic timers.
The API provides a way to schedule one or more timer callbacks to fire some number of milliseconds in the future, and ...
5
votes
1answer
199 views
Listening for values changed by the memory
I'm fetching some values from the memory. I would like to create some custom events that I can listen to for each value. Since there are no existing events regarding memory changes, I've decided to go ...
2
votes
1answer
1k views
Java - Is this the correct implementation of a timer/timertask to destroy a process that overruns a defined time limit
I was wondering if this is the correct implementation of a times task to destroy a thread after it overruns a predefined time period:
it works by creating a getting the thread from ...
8
votes
1answer
2k views
The correct (and safe) way to use a Timer to poll a Delegate
This is a followup to Polling loop to run in a background thread where I was initially using a single thread and Thread.Sleep() to poll a delegate. I was ...
1
vote
1answer
307 views
Timer wrapper review
I used this code in several projects. But I am not sure if it is stable. However on production it is working well, but I want to listen your advices:
...