#include <common/ac/time.h>
Go to the source code of this file.
Functions | |
void | format_elapsed (char *buffer, size_t buflen, time_t number_of_seconds) |
nstring | format_elapsed (time_t number_of_seconds) |
nstring format_elapsed | ( | time_t | number_of_seconds | ) |
The format_elapsed function is used to format an elapsed number of seconds into a (terse) human readable string.
number_of_seconds | The number of seconds to be formatted. |
void format_elapsed | ( | char * | buffer, | |
size_t | buflen, | |||
time_t | number_of_seconds | |||
) |
The format_elapsed function is used to format an elapsed number of seconds into a (terse) human readable string.
buffer | The buffer into which the string is to be formatted. | |
buflen | The size of the buffer in bytes. The result string will never use more than this many bytes. It includes the terminating NUL character. | |
number_of_seconds | The number of seconds to be formatted. |