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.


Device: TMS320C8x
Category: TI Tools
Detail: Code Generation Tools
Detail2: Compiler
Title: Record the Processor Time used for a Variety of Tasks
Source: Case from TMS320 Hotline
Date: 8/1/97
GenId: 0008029

© Copyright 1998 Texas Instruments Incorporated. All rights reserved.
Trademarks, Important Notice!