 Question:
I was attempting to use the functions in time.h. Specifically, I was using the
"clock" function to try to record the processor time used for a variety of
tasks. It continually returns -1, which I understand from the manual indicates that no
timing information was available. It there any initialization I need to perform to allow
the clock function to work? We are using the development tools for a Windows NT system.
Answer: In order to use a
runtime-support function, you must first use the #include
preprocessor directive to include the header file that declares the
function. You must also use the -o option when invoking the
debugger. |