cosmopolitan/third_party/nsync/testing/time_extra.h
2022-10-08 03:00:48 -07:00

15 lines
462 B
C

#ifndef NSYNC_TESTING_TIME_EXTRA_H_
#define NSYNC_TESTING_TIME_EXTRA_H_
#include "third_party/nsync/time.h"
/* Return a malloced nul-terminated string representing time t, using
"decimals" decimal places. */
char *nsync_time_str(nsync_time t, int decimals);
/* Return t as a double. */
double nsync_time_to_dbl(nsync_time t);
/* Return a time corresponding to double d. */
nsync_time nsync_time_from_dbl(double d);
#endif /*NSYNC_TESTING_TIME_EXTRA_H_*/