Questions tagged [clock]

Hardware and system clocks used by drivers, OS and hardware languages.

Clocks are key to controlling synchronous logic and are used by drivers, and OS software. As well, hardware languages, such as and can make extensive use of clocks. CPU or system clocks are familiar to most developers, but a typical computer can contain many different clocks to control different hardware functions such as video, audio, RAM, buses, etc. Familiar current time functions are often derived from a hardware clock which produces interrupts allowing an OS to keep a running time count by recording the interrupt; sometimes called ticks or jiffies.

Related tags

  • - obtaining, formatting times and other uses.
  • - program issues dealing with dates.
  • - measuring execution time with a clock.

See also: PLL, Clock divider

1897 questions
0
votes
0 answers

Java timer not running in executable .jar file?

I have a GUI clock in Java (intelliJ 14) that uses a simple timer to update, when I run the program from IntelliJ the timer and clock work fine. However, when I export the project as an executable .jar file, and run it, the timer doesn't run at all,…
Arman
  • 615
  • 2
  • 6
  • 20
0
votes
6 answers

Extremely CPU Intensive Alarm Clock

EDIT: I would like to thank you all for the swift replies ^^ Sleep() works as intended and my CPU is not being viciously devoured by this program anymore! I will keep this question as is, but to let everybody know that the CPU problem has been…
IAE
  • 2,093
  • 11
  • 35
  • 66
0
votes
1 answer

Clock paging replacement algorithm

Clock replacement algorithm . arr - is physical memory arr2 - pages (virtual memory) if arr haven't page , then replace frame which have R=0 ; If all frames have R=1; Initialize all R=0; IF frame have page and R=1 . Do nothing . Else…
0
votes
0 answers

GLSL Shaders | Slices of circle

I'm trying to make kind of polar clock in Quartz Composer with GLSL Shaders. The problem is i've no idea of this programming language. However i've been searching and found this code as good start: Vertex Shader: #version 120 void main() { …
Dekrab
  • 1
0
votes
1 answer

How to add array to stage and rotate the individual roman numerals to make it look like a clock?

var time:Date = new Date(); secmc.rotation = time.getSeconds() * 6; // rotation for the seconds hand minmc.rotation = time.getMinutes() * 6; // rotation for the minutes hand hourmc.rotation = time.getHours() * 30; // rotation for the minutes…
0
votes
0 answers

Should the system clock be set before copying the sections from rom to ram?

I am having doubts in when should the system clock be setup in the microcontroller. My question is should the system clock be setup properly before invoking the functions to copy .data & .bss sections from ROM to RAM? My rationale for setting up the…
Austin
  • 1
0
votes
1 answer

how many clock ticks have occurred between these values?

If a 16 bit timer counter registers an event at 0xB123 and a subsequent event at 0x23B1 how many clock ticks have occurred between these values? 2^16 = 65536 0xB123 in decimal is 45347 0x23B1 in decimal is 9137 Not sure if I am correct. But do you…
user4198893
0
votes
1 answer

Within Distributed System, when can a logical clock increment by more than 1?

I'm doing a cousework for a distributed sytems module, and within it I neef to apply a variable clock incrementor; my tutor has gone over both Lamport and Vector clocks, but said "I cant hint at that" when I asked him about applying a variable…
TreeHugger
  • 165
  • 1
  • 1
  • 6
0
votes
2 answers

How to make my clock show 6 digits with javascript?

I have a clock made that displays the current time in Hours:Minutes:Seconds. Currently the time is displayed as so 20:30:25, but my problem is that when the time is a single digit for example 1.05 (3 seconds) am, it will appear like this on the…
user3594463
  • 113
  • 1
  • 3
  • 12
0
votes
2 answers

digital current running clock using javascript not working