1,421 questions
4
votes
1
answer
60
views
Strange scipy.interpolate.RegularGridInterpolator timings
I am facing some strange timings with the RegularGridInterpolator from scipy.
Splitting the interpolation into 100 chunks and concatenating the final result seems to be faster for large arrays:
When ...
0
votes
0
answers
37
views
Engine.update not advancing simulation ( having trouble with deltaTime )
so i am trying to run a matter instance in a worker thread.
Im running it with my own loop as shown below. However I'm experiencing trouble with game pacing. Before getting to the explanation here is ...
-2
votes
2
answers
133
views
C# Least resource/processor intensive for accurately blocking thread over short periods of time
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 ...
0
votes
1
answer
61
views
Dictionaries, new dictionary typing, and their operating speeds
I just discovered Godot introduced Dictionary type-casting in v4.4, and I decided to play around with it a bit. I was curious whether using type-cast dictionaries would be more or less efficient time-...
2
votes
0
answers
54
views
Authentication TLV implementation on linuxPTP stack
I was taking a look at the authentication TLV implementation for linuxPTP stack.
If I understand correctly, once you configure two nodes and if you provide a pair of keys to the two nodes, ...
0
votes
2
answers
74
views
In bash, how can an explicitly forked process determine that it was explicitly forked (versus, say, run in a subshell)?
Im working on a bash profiling tool called timep that gives per-command runtime profile for bash scripts and functions. It does this using a DEBUG trap to record start time and stop time for each ...
1
vote
1
answer
101
views
Why is fifelse faster than checking a subset in data.table?
I'm comparing the speed difference between these two methods of updating a column on a data table (for testing, the flag column is 50% TRUE, 50% FALSE):
A[flag==TRUE,b:=b + myfunc(a,b)]
A[,b:=b + ...
0
votes
1
answer
69
views
JS function works only when hard refreshing page
I'm sure this has something to do with the timing of things loading, but I can't figure it out.
I'm using Oracle's Jet charting libraries and trying to convert the y-axis to a percent
When I run this ...
0
votes
1
answer
97
views
Image animation: moving picturebox in VB.NET
In a project, I am trying to create a slideshow on part of a form, animating a picturebox and sliding it from right to left, and this is working fine as long as I use only one image.
If I loop within, ...
1
vote
2
answers
132
views
Is WaitForSingleObject not platform independent for accurate timing?
I have an old app written in Delphi BDS 2006. The app communicates with an external device via the serial port which requires a quite accureate timing on sending data. The timing must be 2ms, so I use ...
0
votes
0
answers
113
views
c++ timer in kernel background
I have a user-space program that implements a simple timer function using a thread to count down for 24 hours
const int SECONDS_IN_24_HOURS = 24 * 60 * 60;
DWORD WINAPI TimerThreadFunction(LPVOID ...
-1
votes
2
answers
391
views
Explanation of Python numpy array operations timing behavior
If I run following code:
import numpy as np
from time import perf_counter as T
Shapes=[ (3,5), (30,50), (300,500), (3000, 5000), (30000, 50000) ]
for shape in Shapes:
h,w = shape
a = np....
0
votes
1
answer
50
views
Weird processing time in repeated function calls, what could explain this?
Given the code below and it's output, what could explain "1:" taking 80 times longer? If run in debug mode, the difference is reduced to 40x longer. Still a significant difference.
My first ...
0
votes
1
answer
86
views
g++ timer not compatible with DPC++ Intel compiler
I've got an HPCCG file I've been trying to compile. I want to compile it with the Intel oneAPI compiler which it does successfully but the results produced suggest the timer implementation isn't ...
0
votes
1
answer
273
views
How can I efficiently execute multiple C++ benchmarking algorithms using Windows cmd
I'm currently working on benchmarking algorithms in C++ on a Windows environment and seeking advice on best practices for conducting accurate performance evaluations.
My setup involves using Windows ...
1
vote
1
answer
483
views
Optimizing 8 to 1 mux (32 bit inputs), with shortest delay
I'm trying to write a 8 to 1 multiplexer code in Verilog, with the shortest possible delay.
Because I'm trying to decrease the "slack" in my project, and in this path the multiplexers takes ...
1
vote
0
answers
40
views
Very strange timing in Nvidia Visual profiler
I'm trying to measure some programs, including some of those included in the CUDA samples, with nvprof in my environment with two Nvidia Quadro Q1000 GPUs.
For 5_Domain_Specific/MonteCarloMultiGPU ...
0
votes
1
answer
77
views
Word VBA - Force Document to Load New Timestamp before Macro executes
I have a timing issue in Word VBA. I am trying to open and update thousands of documents, each one with 2 timestamps in the footer that update upon opening to the date and time the document was ...
0
votes
1
answer
413
views
How to use Timer in the Glance widget?
I hope to use the Glance widget to achieve second level timing function. How can I achieve this?
I would like to know where the Timer should be written and how it can be kept alive for a long time?
...
0
votes
1
answer
80
views
Get the newly added data from a txt file every $X minutes
I have a command that is continually adding IPs (do not know the quantity) to a txt file called ips.txt
shodan stream --alert=all --datadir=. --compresslevel=0 >> ips.txt
I want to get the ...
0
votes
1
answer
94
views
PsychoPy imprecise synchronization between stimulus and mask
I am designing an experiment where, in each trial loop, an ImageStim is randomly drawn from a set of ~200 photos (each about 140kb) in a folder. ImageStim would start at 0.0 local trial time, and last ...
3
votes
3
answers
2k
views
Windows 11 application timing becomes uneven when "backgrounded"
I have a Windows application that is supposed to do something every 40 milliseconds precisely (actually it can be configured to anything, but 40 msec is a typical setting). It has plenty of time to do ...
0
votes
0
answers
343
views
Audio and Video File arent playing in sync
I'm creating a Karaoke WebApp in React for some friends of mine and me.
In my Karaoke App, i'm using multiple Media Files, at least two per song:
One MP4 File which contains the video and the ...
0
votes
1
answer
67
views
Threading producer and consumer timing on live animation
I'm reading data (16 bytes/4 floats) from my com port that comes in every 100us. At the same time I have an animation live update at a rate of 60fps (0.016667sec/frame) using the data at that instant. ...
1
vote
2
answers
238
views
PowerShell: Why are these file comparison times so different?
Edit: I have changed the title of this question from "PowerShell: Why is this timing not working?" I originally thought the times reported had to be wrong, but I was wrong about that. The ...