Hi,
Unfortunately the time functions are not implemented for HCS08 - This header file (time.h) is provided for compatibility only, the implementation is fully hardware dependent.
As mentioned in Compiler manual(in your CW6.3 install\Help\PDF\Compiler_HC08.pdf), search keyword with "Time Functions", in page 454: "The ANSI library provides several functions to get the current time. In an embedded systems environment, implementations for these functions cannot be provided because different targets may use different ways to count the time."
If you need it, you have to write your own functions (if you have some Real Time Clock component on your board).
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------