Questions tagged [system-clock]
130 questions
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
- 9,962
- 4
- 42
- 80
0
votes
1 answer
C++ Get System time as number of seconds in day
I am writing a program to put time-stamps on images taken with a camera. To do that I am using the Windows 7 system time. I have used GetSystemTimeAsFileTime() in the code below:
FILETIME ft;
GetSystemTimeAsFileTime(&ft);
long long ll_now =…

oodan123
- 459
- 2
- 8
- 23
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
- 301
- 1
- 3
- 19
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
- 18,261
- 11
- 80
- 104
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…

GMarco1989
- 3
- 5
0
votes
1 answer
Custom chronometer and time difference
I'm new to C# and I'm trying to make a custom chronometer that is composed of two labels (label1 and label2) that display time strings (time and time0/time1) and one button (pause/play) that changes its text from pause to play and viceversa on each…

Luke
- 503
- 2
- 7
- 17
0
votes
0 answers
How do you determine how long a specific aspect of your activity has been running for?
I am trying to make an app that has a timer, which I have managed to implement, and that has a snooze timer countdown start ten seconds after the alarm ends if the stop button hasn't been pressed. I have been trying to figure this out for days now,…

Rebecca Wyler
- 3
- 1
0
votes
2 answers
How to make a clock showing UK time but the whole application is working in India Time
I have the following Code -