diff --git a/Overlay/Include/stdafx.h b/Overlay/Include/stdafx.h
index e5383ed..bc713b5 100644
--- a/Overlay/Include/stdafx.h
+++ b/Overlay/Include/stdafx.h
@@ -3,4 +3,5 @@
#include "Options.h"
#include "../functions/addWatermark.h"
#include "../functions/captureScreen.h"
-#include "../functions/screenRecorder.h"
\ No newline at end of file
+#include "../functions/screenRecorder.h"
+#include "../functions/timeAdd.h"
\ No newline at end of file
diff --git a/Overlay/Overlay.vcxproj b/Overlay/Overlay.vcxproj
index 5f432e9..62ad3e4 100644
--- a/Overlay/Overlay.vcxproj
+++ b/Overlay/Overlay.vcxproj
@@ -134,6 +134,7 @@
+
diff --git a/Overlay/functions/screenRecorder.h b/Overlay/functions/screenRecorder.h
index 29ba76e..de25395 100644
--- a/Overlay/functions/screenRecorder.h
+++ b/Overlay/functions/screenRecorder.h
@@ -1,5 +1,5 @@
#pragma once
-#include "addWatermark.h"
+#include "../Include/Include.h"
void screenRecorder(std::string file_video)
{
diff --git a/Overlay/functions/timeAdd.h b/Overlay/functions/timeAdd.h
new file mode 100644
index 0000000..bc1981d
--- /dev/null
+++ b/Overlay/functions/timeAdd.h
@@ -0,0 +1,19 @@
+#include "../Include/Include.h"
+
+void timeAdd(HWND hwnd){
+ PAINTSTRUCT ps;
+ HDC hdc = BeginPaint(hwnd, &ps);
+ TEXTMETRIC tm;
+ GetTextMetrics(hdc, &tm);
+ int x = 10;
+ int y = tm.tmHeight + 10;
+
+ auto currentTime = std::chrono::system_clock::now();
+ auto currentTime_t = std::chrono::system_clock::to_time_t(currentTime);
+
+ char timeStr[100];
+ strftime(timeStr, 100, "Time: %H:%M:%S", std::localtime(¤tTime_t));
+
+ TextOut(hdc, x, y, timeStr, strlen(timeStr));
+ EndPaint(hwnd, &ps);
+}
\ No newline at end of file
diff --git a/Overlay/main.cpp b/Overlay/main.cpp
index c648204..e44d963 100644
--- a/Overlay/main.cpp
+++ b/Overlay/main.cpp
@@ -35,21 +35,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
break;
case WM_PAINT:
{
- PAINTSTRUCT ps;
- HDC hdc = BeginPaint(hwnd, &ps);
- TEXTMETRIC tm;
- GetTextMetrics(hdc, &tm);
- int x = 10;
- int y = tm.tmHeight + 10;
-
- auto currentTime = std::chrono::system_clock::now();
- auto currentTime_t = std::chrono::system_clock::to_time_t(currentTime);
-
- char timeStr[100];
- strftime(timeStr, 100, "Time: %H:%M:%S", std::localtime(¤tTime_t));
-
- TextOut(hdc, x, y, timeStr, strlen(timeStr));
- EndPaint(hwnd, &ps);
+ timeAdd(hwnd);
}
break;
case WM_DESTROY: