diff options
author | lloyd <[email protected]> | 2009-12-01 12:02:52 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-12-01 12:02:52 +0000 |
commit | 51cb1979c0533c52f4548d37fb00fbdc6775bba6 (patch) | |
tree | 974091dcb16253ec3b8906fe95deab1f5537bcc5 /src | |
parent | 70ba49797c45db0c28a803341570f7d832c16e7d (diff) |
Drop utils/time.h to deal with a merge conflict.
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/time.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/utils/time.h b/src/utils/time.h deleted file mode 100644 index 3052aec44..000000000 --- a/src/utils/time.h +++ /dev/null @@ -1,39 +0,0 @@ -/* -* Time Functions -* (C) 2009 Jack Lloyd -* -* Distributed under the terms of the Botan license -*/ - -#ifndef BOTAN_TIME_OPS_H__ -#define BOTAN_TIME_OPS_H__ - -#include <ctime> - -namespace Botan { - -/* -* Convert a time_t value to a struct tm -*/ -inline std::tm time_t_to_tm(u64bit time_int) - { - std::time_t time_val = static_cast<std::time_t>(time_int); - - std::tm* tm_p = std::gmtime(&time_val); - if (tm_p == 0) - throw Encoding_Error("time_t_to_tm could not convert"); - return (*tm_p); - } - -/** -* Get the system clock -*/ -inline u64bit system_time() - { - return static_cast<u64bit>(std::time(0)); - } - -} - - -#endif |