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

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_seconds The number of seconds to be formatted.
Returns:
a string containing the elapsed time

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:
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.


Generated on Wed Mar 12 23:37:36 2008 for Aegis by  doxygen 1.5.5