Computer Science, asked by binasingh346, 9 months ago

write the calculation time of the computer​

Answers

Answered by ItzBrainlySisters
7

Answer:

To tell time, the clock uses a quartz crystal oscillator that creates a stable, periodic electromagnetic signal or vibration. By counting the vibrations, the computer can tell the time. ... That way, when you turn the computer back on, the time is still set.

Answered by Anonymous
14

Answer:

To calculate time taken by a process, we can use clock() function which is available time.h. We can call the clock function at the beginning and end of the code for which we measure time, subtract the values, and then divide by CLOCKS_PER_SEC (the number of clock ticks per second) to get processor time, like following.

#include <time.h>

clock_t start, end;

double cpu_time_used;

start = clock();

... /* Do the work. */

end = clock();

cpu_time_used = ((double) (end - st

Similar questions