Questions tagged [high-resolution-time]

A W3C-approved JavaScript API that provides time information with sub-millisecond resolution, and is unaffected by adjustments to the system clock.

High resolution time is a W3C-approved JavaScript API that provides time information with sub-millisecond resolution, and is unaffected by adjustments to the system clock.

External Links

9 questions
25
votes
10 answers

How can I get the Windows system time with millisecond resolution?

How can I get the Windows system time with millisecond resolution? If the above is not possible, then how can I get the operating system start time? I would like to use this value together with timeGetTime() in order to compute a system time with…
7
votes
3 answers

Get file modification time to nanosecond precision

I need to get the full nanosecond-precision modified timestamp for each file in a Python 2 program that walks the filesystem tree. I want to do this in Python itself, because spawning a new subprocess for every file will be slow. From the C library…
Mechanical snail
  • 29,755
  • 14
  • 88
  • 113
3
votes
4 answers

How can I convert performance.now() output to a UTC String?

In our code, we were previously calculating the difference between to events like so: var beginTime = new Date(); // Do stuff var endTime = new Date(); var duration = endTime.getTime() - beginTime.getTime(); console.log("Job began at " +…
Thunderforge
  • 19,637
  • 18
  • 83
  • 130
2
votes
2 answers

Knowing the time origin of event's timestamp

Recently some browsers started to use High Resolution time stamps for their events. One of the major difference with the previous approach is that this duration isn't relative to the system epoch but to some "time origin" (most of the time…
Quentin Roy
  • 7,677
  • 2
  • 32
  • 50
1
vote
1 answer

Custom date and time including nanoseconds

For this program I need to "grab the start time of the entire process within the max. time precision avail including nanoseconds." in the format: April 9, 2022 13:18:17.123456789 I am able to get everything but the nanoseconds. Is it possible…
1
vote
0 answers

How do I convert high resolution time to EST time in R?

Data I have high-resolution time matrices in 2 hdf5 files. I am sharing the first 6 rows of both: highres1 <- structure(c(1146787039L, 1146950679L, 1147117707L, 1147288787L, 1147455927L, 1147621801L, 30737659L, 30737659L,…
umair durrani
  • 5,597
  • 8
  • 45
  • 85
0
votes
1 answer

Assign ProcessPoolExecutor to defined cpus and using queues to communicate

hope you guys can help me. I searched a lot but was not able to find a solution for my problem. I am using a Raspberry 3 B+ to communicate to a safety plc with a constant cycle time of 2ms. To satisfy my needs I used the Preempt-RT Patch for the…
0
votes
0 answers

High res timer logging

I'm writing multithreading app on C++ and I need logging with timestamps to workout data races synchronization etc. This means that I need to log time with milliseconds at least. I looked all over the internet to find the way just to print…
Yura
  • 969
  • 14
  • 33
-3
votes
1 answer

Generating interrupt each 100 microsecond on windows

i want to generate interrupt every 100 microseconds on windows. Actually i couldnt do this on windows,because windows does not guarantee the interrupts less then 500 microseconds. So, i generate 2 threads. One of them is for timer counter(query…