Botan  1.11.15
Namespaces | Defines
src/lib/entropy/hres_timer/hres_timer.cpp File Reference
#include <botan/internal/hres_timer.h>
#include <botan/cpuid.h>
#include <chrono>

Go to the source code of this file.

Namespaces

namespace  Botan

Defines

#define STD_CHRONO_POLL(clock)

Define Documentation

#define STD_CHRONO_POLL (   clock)
Value:
do {                                                         \
      auto timestamp = clock::now().time_since_epoch().count(); \
      accum.add(timestamp, ESTIMATED_ENTROPY_PER_BYTE);         \
   } while(0)

Referenced by Botan::High_Resolution_Timestamp::poll().