Proud::Timer Class Reference

Public Member Functions

 Timer (HANDLE eventHandle, uint32_t interval, DWORD_PTR dwUser=0)
 
 ~Timer ()
 

Detailed Description

Timer class

  • Periodically lets SetEvent evenrt object(Please refer Proud.Event), in other words, this lets it signal.
  • Acts similar to System.Timer of .NET framework

Constructor & Destructor Documentation

Proud::Timer::Timer ( HANDLE  eventHandle,
uint32_t  interval,
DWORD_PTR  dwUser = 0 
)

Constructor

Parameters
eventHandleEvnet object where signal to be entered periodically. It is possible to use Proud.event as parameter.
intervalThe period to enter signal. Unit is millisecond.
Proud::Timer::~Timer ( )

Destructor

  • From right after destructing objct, it is not to enter signal into event object.