system-clock Questions

6

Solved

I have just written this short C++ program to approximate the actual number of clock ticks per second. #include <iostream> #include <time.h> using namespace std; int main () { for(...
Liddle asked 4/5, 2012 at 20:43

3

I'm trying to increase the speed at which qemu runs, so for example one tick of the real CPU will correspond to two ticks of the virtual time of qemu. Is this possible and if so does anyone have an...
Parodic asked 24/7, 2014 at 14:45

2

Solved

This question has already been answered for the browser here, but window.performance.now() is obviously not available in Node.js. Some applications need a steady clock, i.e., a clock that monotonic...
Miserere asked 26/10, 2017 at 22:26

1

Solved

What I understand is, partial ordering and total ordering are two sets of rules. Partial ordering has Three rules: (1) if a an b are two events in the same process and a comes before b, then a->b...

4

Solved

I'm trying to implement some cross-platform code in C++11. Part of this code implements a semaphore object using a std::condition_variable. When I need to do a timed wait on the semaphore, I use wa...
Marsha asked 23/6, 2018 at 21:42

3

Solved

I’m using AWS and am on an EC2 server … [dalvarado@mymachine ~]$ uname -a Linux mydomain.org 3.14.33-26.47.amzn1.x86_64 #1 SMP Wed Feb 11 22:39:25 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux My cloc...
Danner asked 2/4, 2015 at 16:49

6

Solved

I've noticed that if I call the JavaScript setTimeout() function with a 1 minute delay, and then change my system time to 5 minutes in the past, the callback function will trigger in 6 minutes. I d...
Lsd asked 2/2, 2011 at 22:54

1

Solved

I have some code that tries to determine the execution time of a code block. #include <time.h> #include <stdio.h> int main() { clock_t start_t, end_t, total_t; int i; start_t = cl...
Delius asked 8/10, 2016 at 18:23

5

Solved

I'm developing an android application and hit the problem with determining system first boot up time. I mean i need to measure how much time already passed from device first boot up. I know about s...
Katherinkatherina asked 25/4, 2014 at 1:11

2

Solved

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...
Geomorphic asked 9/11, 2015 at 16:27

2

Solved

How do you convert from SystemClock.elapsedRealTime() to a human readable CharSeq that can be displayed in textview?
Kermis asked 22/7, 2015 at 21:49

1

I just came across the following paragraph in the AppEngine documentation for Query Cursors: An interesting application of cursors is to monitor entities for unseen changes. If the app sets a t...
Expressman asked 16/8, 2013 at 1:16

2

Solved

I'm writing a script containing several "adb shell" command. I also want to record the time when program execute these command in a form of realtime and uptime. I know I can get uptime and realtime...
Pedicular asked 8/8, 2013 at 20:57

2

Solved

I've noticed that System.currentTimeMillis() time is device dependent. If I change the time on the device's clock, this method will return a different answer. For example: If the real time now is ...
Pasture asked 17/11, 2014 at 9:20

1

Solved

I want to understand the time information on the dumpsys gfxinfo log. It looks like this: Applications Graphics Acceleration Info: Uptime: 16264702 Realtime: 28169900 Can anyone tell me how to ...
Potiche asked 4/8, 2013 at 0:39

2

Solved

We want to run a task every 1000 seconds (say). So we have timer.scheduleAtFixedRate(task, delay, interval); Mostly, this works fine. However, this is an embedded system and the user can change...
Gatha asked 11/7, 2013 at 8:6

4

Solved

I'm trying to work up a basic text-based game as I'm learning Java. I'd like to be able to count rounds in the game as a means of managing the pacing of certain events. For instance, changing rooms...
Erminiaerminie asked 20/3, 2013 at 16:55

1

Solved

The Android docs on uptimeMillis() says: Returns milliseconds since boot, not counting time spent in deep sleep. Note: This value may get reset occasionally (before it would otherwise wrap aroun...
Duntson asked 25/11, 2012 at 5:28

1

Solved

I need set the date/time from Android programmatically, but I'm not having success! I have these three sources above: Source code 1 AlarmManager alarm = (AlarmManager) getSystemService(ALARM_SERV...
Kudva asked 24/2, 2012 at 16:21

1

Solved

Is there a virtual/system clock running independently when a computer is booted? How can we read that value?
Whether asked 15/7, 2010 at 7:35
1

© 2022 - 2024 — McMap. All rights reserved.