Questions tagged [system-clock]

109 questions
0
votes
2 answers

Generating system clock configuration for STM32F103C8 with CubeMX

I am trying to generate system_stm32f1xx.c which will set up my clock as shown on the picture. The problem is that, when I generate the code with CubeMX, I don't get this configuration. Instead, I get the (I guess) default configuration with…
AC Voltage
  • 319
  • 1
  • 8
0
votes
1 answer

Do I use Fortran system_clock correctly?

I am using the function system_clock with Fortran90 (compiled with gfortran) in the following way : ! Variables for clock integer count_0, count_1 integer count_rate, count_max double precision time_init, time_final, elapsed_time !…
youpilat13
  • 65
  • 3
  • 25
  • 65
0
votes
1 answer

Time Updating issue in javascript

In javascript there is object new Date() it gives current time and date that may be picked by system clock But when i move time next hours why it should take approx 45 seconds to update time in javascript? Example:- current time is 10:46 but when…
Tauqeer
  • 11
  • 1
0
votes
1 answer

stm32f4 clock configuration won't enable bits in PWR register

I've recently purchased a NUCLEO-F446RE board (an STM32F4 product) and I'm having major problems enabling bits in the PWR register. My goal is to blink an LED using the timer and I'm trying to configure the HSI clock to a max system frequency of 180…
wait_wut
  • 57
  • 1
  • 7
0
votes
1 answer

How to slave the audio clock to the system clock using ALSA?

I want to make the audio clock to be a slave to the system clock or use the system clock to drive the audio system instead of the audio clock. Is this possible with ALSA?
Jan Deinhard
  • 17,925
  • 24
  • 75
  • 131
0
votes
1 answer

Getting time since epoch in milliseconds isn't outputting correctly

I've used the code from one of the answers on this forum but it's doesn't appear to be correct. I don't know if it's the code or the way I'm logging it. unsigned long long int NQCTestInstance::getCurrentTimeInMs() { unsigned long…
Dan James Palmer
  • 2,088
  • 5
  • 36
  • 61
0
votes
1 answer

How do you show milliseconds on the time on vb

I have a clock on VB and i have got it to say the date and time but it wont show the milliseconds on the time. time = DateTime.Now.ToString("dd/mm/yy HH:mm:ss") So I know how to put the hours minuets and seconds but im not sure how to add…
Nathan
  • 21
  • 4
0
votes
0 answers

Isolate Seconds from Matlab Clock

I am trying to achieve two things: Start a function if the current time is an exact 10 seconds multiple and Run the function in a loop every 10 seconds after that I have a cronjob on AWS pulling data every 10 seconds. I want my MATLAB function to…
mmk88
  • 91
  • 1
  • 6
0
votes
2 answers

getting chrono time in specific way

I have following C code: uint64_t combine(uint32_t const sec, uint32_t const usec){ return (uint64_t) sec << 32 | usec; }; uint64_t now3(){ struct timeval tv; gettimeofday(&tv, NULL); return combine((uint32_t) tv.tv_sec,…
Nick
  • 8,479
  • 2
  • 36
  • 64
0
votes
1 answer

reading the system clock value?

Is there a virtual/system clock running independently when a computer is booted? How can we read that value?
pvaju896
  • 1,347
  • 5
  • 24
  • 45
0
votes
0 answers

Server Pc Clock Is Delayed

I have a Windows 2012 Server and client PS's get clock data from the server but server clock delays like 5 mins in 6 months. How can I fix that?
CanESER
  • 271
  • 1
  • 3
  • 17
0
votes
2 answers

Android app widget not updating after changing system clock

I have an Android widget scheduled to update every hour android:updatePeriodMillis="3600000" However even when I change the system clock (forward one hour or more) the widget update method is not being called, no visual changes or logs happen. I…
htafoya
  • 15,392
  • 10
  • 62
  • 83
0
votes
1 answer

How can I modify time in Robolectric in order to fire an alarm

I'm trying to test a method with Robolectric (first contact with Robolectric). I would like to set the system clock forward in order to fire an alarm, which was previously set with: alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, alarmDelay,…
Hélène
  • 327
  • 1
  • 5
  • 12
0
votes
2 answers

Similar functionality to CLOCK_MONOTONIC in Windows (and Windows Embedded CE)

I have some C++ Windows code which needs to compute time intervals. For that, it uses GetCurrentFT if it detects that is running in WinCE and GetSystemTimeAsFileTime for other Windows platforms. However, if I'm not mistaken, this might be vulnerable…
user2891462
  • 2,657
  • 2
  • 23
  • 50
0
votes
2 answers

Modify system date using Win32SetSystemTime in C# (only date, no hour, minute, second)

Is possible to set the system time (using Win32SetSystemTime) without changing hour, minute and second (only year, month and day)? Here is my code. As you can see, I commented falseData.Hour, falseData.Minute and falseData.Second because I don't…