src/plugin/qsort_utils.c
void sf_running_timer (clock_t *timer, const char *msg)
{
    double diff  = (double) (clock() - *timer) / CLOCKS_PER_SEC;
    sf_printf (msg);
    sf_printf ("; %.3f seconds.\n", diff);
    *timer = clock();
}
/**
 * @brief Update a running timer and print a message to satata console
 *
 * Prints a messasge to Stata that the running timer @timer was last set
 * @diff seconds ago. It then updates the timer to the current time.
 *
 * @param timer clock object containing time since last udpate
 * @param msg message to print before # of seconds
 * @return Print time since last update to Stata console
 */
@brief Update a running timer and print a message to satata console
Prints a messasge to Stata that the running timer @timer was last set
@diff seconds ago. It then updates the timer to the current time.

@param timer clock object containing time since last udpate
@param msg message to print before # of seconds
@return Print time since last update to Stata console
@brief Update a running timer and print a message to satata console Prints a messasge to Stata that the running timer @timer was last set @diff seconds ago . It then updates the timer to the current time . @param timer clock object containing time since last udpate @param msg message to print before # of seconds @return Print time since last update to Stata console
void sf_running_timer (clock_t *timer, const char *msg)
{
    double diff  = (double) (clock() - *timer) / CLOCKS_PER_SEC;
    sf_printf (msg);
    sf_printf ("; %.3f seconds.\n", diff);
    *timer = clock();
}
void sf_running_timer ( clock_t * timer , const char * msg ) { double diff = ( double ) ( clock ( ) - * timer ) / CLOCKS_PER_SEC ; sf_printf ( msg ) ; sf_printf ( " \n " , diff ) ; * timer = clock ( ) ; }
@brief Update a running timer and print a message to satata console
 Prints a messasge to Stata that the running timer @timer was last set
 @diff seconds ago.
@brief Update a running timer and print a message to satata console Prints a messasge to Stata that the running timer @timer was last set @diff seconds ago .