Part Number: MSP430FR5969
Tool/software: TI C/C++ Compiler
I am having a heck of a time implementing a std::chrono compatible time-keeping system.
I am trying to redefine the C function clock() ( following
)
Why isn't CLOCKS_PER_SEC constant / OR how can I redefine std::chrono::steady_clock::now() to return nanosecond time_point's. The current implementation divides clock() by CLOCKS_PER_SEC, casts that value to seconds, and then converts that back to nanoseconds.
My real problem is that implementing my own std::chrono::steady_clock::now() funtion causes a redefinition of symbols error with TI-Compiler
Is there a way to override a single linked-library function? Our codebase requires the use std::chrono::steady_clock and cannot use a custom clock implementation.