Skip to content

Commit

Permalink
move sleep macros
Browse files Browse the repository at this point in the history
  • Loading branch information
catriverr committed Nov 9, 2024
1 parent bb745d1 commit f96008a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/bin/gmeng.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
#include <limits.h>
#endif

#define sleep std::this_thread::sleep_for
#define ms std::chrono::milliseconds


#define time_rn std::chrono::system_clock::now().time_since_epoch()
#define GET_TIME() ( std::chrono::duration_cast<std::chrono::milliseconds>(time_rn).count() )

Expand Down
2 changes: 0 additions & 2 deletions lib/bin/utils/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
#include <unistd.h>
#include <sys/ioctl.h>

#define sleep std::this_thread::sleep_for
#define ms std::chrono::milliseconds

#ifndef BUTTON5_PRESSED
#define BUTTON5_PRESSED true
Expand Down

0 comments on commit f96008a

Please sign in to comment.