In article <hbhv6c$84p$>,
says...
[ ... ]
> Not to attempt to discuss further; just another observation: 'printf'
> has several well-known problems related to the use of '...' while
> functions in <ctime> IIRC do not suffer from that. Hence the OP's
> apprehension (of "reverting to C code") is IMHO unfounded, and your
> likening of mechanisms from <ctime> to 'printf' does not work.
I think it's worth noting, however, that even though C's time
functions don't suffer from the _same_ problems as printf, they do
have some problems of their own. For example, a number use static
buffers that can be overwritten by successive calls to the same
function.
People can (and have) argued about whether iostreams are really a
_better_ alternative to C's standard I/O, but in the case of the time
functions, there's little real room for argument -- C++ simply
doesn't provide any alternatives.
--
Later,
Jerry.