task: Removed obsolete timer util
This commit is contained in:
parent
ec92ac91ab
commit
b26ab9ce5f
5 changed files with 0 additions and 28 deletions
|
@ -1,9 +0,0 @@
|
|||
#if 0
|
||||
#pragma once
|
||||
|
||||
namespace timer
|
||||
{
|
||||
// unsigned int seconds_to_microseconds(float seconds);
|
||||
// void sleep(float seconds);
|
||||
}
|
||||
#endif
|
|
@ -51,7 +51,6 @@ set(SOURCE_FILES
|
|||
"src/utils/io.cpp"
|
||||
"src/utils/proc.cpp"
|
||||
"src/utils/string.cpp"
|
||||
"src/utils/timer.cpp"
|
||||
"src/utils/xlib.cpp"
|
||||
"src/bar.cpp"
|
||||
"src/eventloop.cpp"
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include "utils/macros.hpp"
|
||||
#include "utils/proc.hpp"
|
||||
#include "utils/string.hpp"
|
||||
#include "utils/timer.hpp"
|
||||
#include "utils/xlib.hpp"
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include "utils/config.hpp"
|
||||
#include "utils/io.hpp"
|
||||
#include "utils/proc.hpp"
|
||||
#include "utils/timer.hpp"
|
||||
|
||||
using namespace modules;
|
||||
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
#if 0
|
||||
#include <unistd.h>
|
||||
|
||||
#include "utils/timer.hpp"
|
||||
|
||||
namespace timer
|
||||
{
|
||||
unsigned int seconds_to_microseconds(float seconds) {
|
||||
return seconds * 1000000;
|
||||
}
|
||||
|
||||
void sleep(float seconds) {
|
||||
usleep(seconds_to_microseconds(seconds));
|
||||
}
|
||||
}
|
||||
#endif
|
Loading…
Reference in a new issue