S
sathyashrayan
Friends,
As I was going through the standard draft of C (C99) I come across
the header file <time.h>. I wonder why the standard has included the
header file since it depends on the hardware that we work with. If
somebody wants to access the time of the system then he has to use the
interrupt 1A in the real mode or access the timer chip (port id
70-70h) pmode but that is off-topic in this group.
I concluded that it is because of the running-time analysis that is
needed for a program.
(Correct me if I am wrong)
If the standard can include a *portable* way of accessing a hardware
why not the standard include for other routines also such as keyboard,
graphic device drivers, hard disk etc.
As I was going through the standard draft of C (C99) I come across
the header file <time.h>. I wonder why the standard has included the
header file since it depends on the hardware that we work with. If
somebody wants to access the time of the system then he has to use the
interrupt 1A in the real mode or access the timer chip (port id
70-70h) pmode but that is off-topic in this group.
I concluded that it is because of the running-time analysis that is
needed for a program.
(Correct me if I am wrong)
If the standard can include a *portable* way of accessing a hardware
why not the standard include for other routines also such as keyboard,
graphic device drivers, hard disk etc.