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

PTimeInterval PTimer::Tick (  )  [static]

Get the number of milliseconds since some arbtrary point in time. This is a platform dependent function that yields a real time counter.

Note that even though this function returns milliseconds, the value may jump in minimum quanta according the platforms timer system, eg under MS-DOS and MS-Windows the values jump by 55 every 55 milliseconds. The Resolution()# function may be used to determine what the minimum time interval is.

millisecond counter.

Definition at line 139 of file ptlib.inl.

Referenced by PTrace::Begin(), and PChannel::ReadCharWithTimeout().

  { return (PInt64)clock()*CLOCKS_PER_SEC/1000; }

Generated by  Doxygen 1.6.0   Back to index