Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
3 votes
1 answer
296 views

To get a sense of how accurate Instant.now() is on various machines, I ran a very simple test to see how often the clock updated: public class Test { private static final Logger logger = ...
1 vote
1 answer
103 views

#define TIMEOUT 1000000 // Timeout value to avoid infinite loops /* System Clock Configuration */ void cfg_sys_clock() { uint32_t timeout; //select 8khz as MSI MODIFY_REG(RCC-...
0 votes
1 answer
44 views

The REALTIME operator is supposed to output the time in miliseconds. I want to use that as a seed for RAND, but the output is always a two digit number between 24 and 31. How am I misunderstanding the ...
1 vote
0 answers
119 views

This is the method I am using below method to put on sleep mode which is working and wakeup also working based on configuration, but when I try to flash using jlink in when MCU is in sleep mode it is ...
0 votes
1 answer
215 views

I tried enabling this rule and ran spyglass, (I have 2 clocks of same frequency and phase). Still I'm getting a errors in cdc_verify saying data hold check failed in fast to slow clock transfer even ...
0 votes
0 answers
401 views

I'm working on an application related to time. In order to simulate a real environment, I needed to adjust the system clock of a virtual machine 1440 times faster (one day became one minute) during ...
0 votes
3 answers
870 views

we are having a piece of code where we are using NanoClock to get the exact time. In a nut shell below is the code snippet of how i am generating the nano time and how we are converting to simple date ...
0 votes
1 answer
245 views

I am using STM8S Cosmic C compiler, and I am trying to configure tim2 for 350 μs (350 μs should be the pulse width). As per the reference manual, tim4 is a 16-bit with a prescaler factor of 32768. I ...
nyl's user avatar
  • 13
0 votes
1 answer
68 views

Clock on tkinter doesn't work I created a weather app, but the clock just constantly stand still the time, how to fix it??? current = datetime.now(home) real = current.strftime("%d/%m/%Y\n%H:%M:%...
0 votes
1 answer
376 views

I'm working on a new GitHub repository called Charms Bar Port using Visual Studio 2022 that requires the UI to show a clock and date at the lower left, as seen on this image. However, the clock seems ...
1 vote
1 answer
833 views

I must use the utc_clock<> feature of C++20. Before, I was using the date library from Howard Hinnant date library but now I want to use the standard C++20 features (and not the date library). ...
jke's user avatar
  • 41
2 votes
1 answer
2k views

Savvy engineers use clock_gettime( CLOCK_MONOTONIC, &my_timspec_struct ) to get a continuously increasing epoch-style clock that is "unaffected" by changes to the system clock. (Where ...
Kingsley's user avatar
  • 15.1k
3 votes
2 answers
2k views

Here's some code that I found: std::cout << std::chrono::system_clock::now().time_since_epoch().count() << std::endl; This prints 1662563612364838407 for me; so it looks like this prints ...
oliver's user avatar
  • 6,890
-3 votes
1 answer
530 views

I'm exploring the timestamp in C++ 20 returned from system_clock::now() and when I print out the returned std::chrono::time_point it prints the date and time in the format YYYY-MM-DD HH:MM:SS.xxxxxxx....
0 votes
2 answers
121 views

Suppose someone travels from a country with UTC to +/- X hr timezone. Their device such as a computer or a mobile, is completely switched off during this journey. Upon reaching the destination, once ...

15 30 50 per page
1
2 3 4 5
...
9

AltStyle によって変換されたページ (->オリジナル) /