0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 20:13:05 +02:00
openvpn3/openvpn/common/now.hpp

19 lines
279 B
C++
Raw Normal View History

2011-09-29 01:12:37 +02:00
#ifndef OPENVPN_COMMON_NOW_H
#define OPENVPN_COMMON_NOW_H
#include <ctime>
namespace openvpn {
typedef ::time_t time_t;
volatile time_t now = 0; /* GLOBAL */
2011-09-29 01:12:37 +02:00
inline void update_now()
{
now = time(NULL);
}
2011-09-29 01:12:37 +02:00
} // namespace openvpn
#endif // OPENVPN_COMMON_NOW_H