NAME
get_time_2 - Gets the current time as a string.
SYNOPSIS
#include "l/l_sys_time.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
int get_time_2
(
char *time_buff,
size_t max_len,
const char *format_str
);
DESCRIPTION
This routine puts the current time into the buffer time_buff of size max_len.
The size must be at least 25. It supports the standard time formatting
options (see strftime(3)) via the argument format_str. If format_str is NULL,
then the format from ctime is used (same behaviour as get_time()).
RELATED
BUFF_GET_TIME_2
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard
SEE ALSO
init_cpu_time
,
get_cpu_time
,
get_cpu_time_2
,
display_cpu_time
,
init_real_time
,
get_real_time
,
display_real_time
,
get_time