write the calculation time of the computer
Answers
Answered by
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
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
India Languages,
5 months ago
Math,
5 months ago
Computer Science,
5 months ago
Biology,
11 months ago
Geography,
1 year ago
Math,
1 year ago