aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/timer/posix_rt
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/timer/posix_rt')
-rw-r--r--src/utils/timer/posix_rt/info.txt28
-rw-r--r--src/utils/timer/posix_rt/tm_posix.cpp31
-rw-r--r--src/utils/timer/posix_rt/tm_posix.h25
3 files changed, 0 insertions, 84 deletions
diff --git a/src/utils/timer/posix_rt/info.txt b/src/utils/timer/posix_rt/info.txt
deleted file mode 100644
index 7501373bb..000000000
--- a/src/utils/timer/posix_rt/info.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-realname "POSIX Timer"
-
-define TIMER_POSIX
-
-load_on auto
-
-<add>
-tm_posix.cpp
-tm_posix.h
-</add>
-
-<libs>
-linux -> rt
-</libs>
-
-# The *BSDs put clock_gettime in sys/time.h, not time.h like POSIX says
-<os>
-cygwin
-linux
-#freebsd
-#netbsd
-#openbsd
-</os>
-
-<requires>
-timer
-</requires>
-
diff --git a/src/utils/timer/posix_rt/tm_posix.cpp b/src/utils/timer/posix_rt/tm_posix.cpp
deleted file mode 100644
index 601b2b43d..000000000
--- a/src/utils/timer/posix_rt/tm_posix.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-/*************************************************
-* POSIX Timer Source File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
-
-#include <botan/tm_posix.h>
-#include <botan/util.h>
-
-#ifndef _POSIX_C_SOURCE
- #define _POSIX_C_SOURCE 199309
-#endif
-
-#include <time.h>
-
-#ifndef CLOCK_REALTIME
- #define CLOCK_REALTIME 0
-#endif
-
-namespace Botan {
-
-/*************************************************
-* Get the timestamp *
-*************************************************/
-u64bit POSIX_Timer::clock() const
- {
- struct ::timespec tv;
- ::clock_gettime(CLOCK_REALTIME, &tv);
- return combine_timers(tv.tv_sec, tv.tv_nsec, 1000000000);
- }
-
-}
diff --git a/src/utils/timer/posix_rt/tm_posix.h b/src/utils/timer/posix_rt/tm_posix.h
deleted file mode 100644
index 077636a0a..000000000
--- a/src/utils/timer/posix_rt/tm_posix.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/*************************************************
-* POSIX Timer Header File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
-
-#ifndef BOTAN_TIMER_POSIX_H__
-#define BOTAN_TIMER_POSIX_H__
-
-#include <botan/timer.h>
-
-namespace Botan {
-
-/*************************************************
-* POSIX Timer *
-*************************************************/
-class BOTAN_DLL POSIX_Timer : public Timer
- {
- public:
- std::string name() const { return "POSIX clock_gettime"; }
- u64bit clock() const;
- };
-
-}
-
-#endif