Aegis  4.25.D505
Functions
common/format_elpsd.h File Reference
#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)

Function Documentation

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.

Parameters:
bufferThe buffer into which the string is to be formatted.
buflenThe 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_secondsThe number of seconds to be formatted.
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.

Parameters:
number_of_secondsThe number of seconds to be formatted.
Returns:
a string containing the elapsed time