8 #include "wvtimestream.h"
14 WvLog log(
"time", WvLog::Info);
18 log(
"Artificial burstiness - should take exactly 10 seconds\n");
22 for (count = 0; count < 100; count++)
24 if (!(count % 10)) log(
"\n");
26 while (!t.
select(5*(100-count)))
bool select(time_t msec_timeout)
Return true if any of the requested features are true on the stream.
virtual void callback()
if the stream has a callback function defined, call it now.
WvTimeStream causes select() to be true after a configurable number of milliseconds.
void set_timer(time_t msec)
Every 'msec' milliseconds, select() will return true on this stream.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's.