SW Task Event Loop Framework v1.0.0
High-performance C++ asynchronous event loop framework with timer management and promise-based programming
Loading...
Searching...
No Matches
Handler.cpp File Reference

Implementation of Handler - message-based communication in event loop. More...

#include <assert.h>
#include <chrono>
#include "Handler.h"
#include <iostream>
#include <string>
Include dependency graph for Handler.cpp:

Go to the source code of this file.

Namespaces

namespace  swt
 Software Timer namespace containing all timer-related classes.
 

Macros

#define ms2us(x)   (x*1000LL)
 Convert milliseconds to microseconds.
 

Detailed Description

Implementation of Handler - message-based communication in event loop.

Author
Tran Anh Tai
Date
9/2025
Version
1.0.0

Definition in file Handler.cpp.

Macro Definition Documentation

◆ ms2us

#define ms2us (   x)    (x*1000LL)

Convert milliseconds to microseconds.

Parameters
xTime in milliseconds
Returns
Time in microseconds

Utility macro for time unit conversion used in message timing.

Definition at line 23 of file Handler.cpp.