adas_profile_print()

Stop and output the profiling information of a critical section of an algorithm

Synopsis:

#include <adas/adas_external_algo.h>
adas_error_t adas_profile_print(const char *str,
                                uint64_t *time)

Arguments:

str
Format string to print; must have argument for printing the elapsed time from the timestamp.
time
The timestamp value set by call to adas_profile_init().

Library:

libadas

Description:

Profiling will measure how much time has elapsed since the call to adas_profile_init() was made.

Returns:

ADAS_EOK when the function successfully completes, otherwise another adas_error_t value that provides the reason that the call failed.