Logo Search packages:      
Sourcecode: pwlib version File versions

void PTimeInterval::PrintOn ( ostream &  strm  )  const [virtual, inherited]

Output the time interval to the I/O stream. This outputs the number of milliseconds as a signed decimal integer number.

strm  I/O stream to output the time interval.

Reimplemented from PObject.

Definition at line 213 of file ptime.cxx.

  int precision = stream.precision();

  Formats fmt = NormalFormat;
  if ((stream.flags()&ios::scientific) != 0)
    fmt = SecondsOnly;
  else if (precision < 0) {
    fmt = IncludeDays;
    precision = -precision;

  stream << AsString(precision, fmt, stream.width());

Generated by  Doxygen 1.6.0   Back to index