> Try eprintf(""), it should clear status line.
Er, all that does is write to stderr ... we need to call
CmdExec::status_line::Clear(), I think. I guess a message needs to be
propagated up to CmdExec to do that. That seems tricky: we need to go
from FileCopy::Do all the way up to the CmdExec, and only do this if
it's the foreground job (can't have background jobs clearing the status
line.) And since FileCopy isn't a job, it doesn't have a parent leading
us to CmdExec.
On Mon, Oct 08, 2001 at 03:42:30PM +0400, Alexander V. Lukyanov wrote:
> > Added simple timer class. This uses timevals; gettimeofday is wrapped
> > in xgettimeofday for systems without it. (I did some searching; there
> > are a lot of places that say some systems don't have gettimeofday, but
> > none about timeval. If systems do turn out not to have it, we can just
> > define it ourselves.)
>
> I'd like to have a generic Time class with operator- which would return
> time difference in milliseconds or as a float. Make it in a separate file.
Well, operator math should probably return another Time object; if it's
needed as a float, another function can do that. (This kind of stuff is
costly for strings, but cheap for an 8-byte time structure that can
probably be passed around on the stack.)
--
Glenn Maynard