S
Sven
Hi,
I found a strange behaviour when using the time() function from time.h.
Sometimes when it is called, it does not show the correct time in
seconds, but an initial value. This time seem to be the time when the
program was started the first time.
My platform is a DEC machine with Tru64 onboard.
A possible explanation could be, that the time() function is called
within a signal handler. The program uses a SIGTIME to run regularly
through a procedure. There some log entries with time stamp are done.
These time stamps are sometimes wrong.
My question is, if someone knows, under which circumstances the time()
function can produce incorrect values and if there are some side
effects.
Thanks in advance,
Sven Bauhan
I found a strange behaviour when using the time() function from time.h.
Sometimes when it is called, it does not show the correct time in
seconds, but an initial value. This time seem to be the time when the
program was started the first time.
My platform is a DEC machine with Tru64 onboard.
A possible explanation could be, that the time() function is called
within a signal handler. The program uses a SIGTIME to run regularly
through a procedure. There some log entries with time stamp are done.
These time stamps are sometimes wrong.
My question is, if someone knows, under which circumstances the time()
function can produce incorrect values and if there are some side
effects.
Thanks in advance,
Sven Bauhan