Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

DWORD PTimeInterval::GetInterval (  )  const [inherited]

Get the number of milliseconds for the time interval.

Returns:
long integer number of milliseconds.

Definition at line 1151 of file osutils.cxx.

References PTimeInterval::milliseconds.

Referenced by PIPSocket::ClearNameCache(), PThread::Sleep(), PSemaphore::Wait(), PThread::WaitForTermination(), and PPipeChannel::WaitForTermination().

{
  if (milliseconds <= 0)
    return 0;

  if (milliseconds >= UINT_MAX)
    return UINT_MAX;

  return (DWORD)milliseconds;
}


Generated by  Doxygen 1.6.0   Back to index