2024-01-21 08:22:06 +01:00
|
|
|
#pragma once
|
2023-08-15 14:02:17 +02:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2024-01-21 08:22:06 +01:00
|
|
|
#include <atomic>
|
|
|
|
#include <mutex>
|
|
|
|
#include <optional>
|
|
|
|
#include <vector>
|
2023-12-27 04:35:46 +01:00
|
|
|
|
2024-01-21 08:22:06 +01:00
|
|
|
#define LOG_INFO(fmt, ...) printf("[+] " fmt "\n", ##__VA_ARGS__)
|
2024-01-22 14:02:59 +01:00
|
|
|
#define LOG_ERROR(fmt, ...) printf("[-] " fmt "\n", ##__VA_ARGS__)
|
|
|
|
|
|
|
|
#define ABSOLUTE(wait) (wait)
|
|
|
|
#define RELATIVE(wait) (-(wait))
|
|
|
|
|
|
|
|
#define NANOSECONDS(nanos) (((signed __int64)(nanos)) / 100L)
|
|
|
|
#define MICROSECONDS(micros) (((signed __int64)(micros)) * NANOSECONDS(1000L))
|
|
|
|
#define MILLISECONDS(milli) (((signed __int64)(milli)) * MICROSECONDS(1000L))
|
|
|
|
#define SECONDS(seconds) (((signed __int64)(seconds)) * MILLISECONDS(1000L))
|
|
|
|
#define LOG_ERROR(fmt, ...) printf("[-] " fmt "\n", ##__VA_ARGS__)
|