4 #ifndef IntelliStream_SRC_UTILS_UTILITYFUNCTIONS_HPP_
5 #define IntelliStream_SRC_UTILS_UTILITYFUNCTIONS_HPP_
8 #include <experimental/filesystem>
20 typedef std::shared_ptr<std::barrier<>> BarrierPtr;
21 #define TIME_LAST_UNIT_MS 1000
22 #define TIME_LAST_UNIT_US 1000000
31 static std::shared_ptr<std::barrier<>> createBarrier(
int count);
37 static size_t timeLast(
size_t past,
size_t unitTime);
38 static size_t timeLastUs(
struct timeval past);
51 static std::vector<size_t> avgPartitionSizeFinal(
size_t inS, std::vector<size_t> partitionWeight);
52 static std::vector<size_t> weightedPartitionSizeFinal(
size_t inS, std::vector<size_t> partitionWeight);
53 static size_t to_periodical(
size_t val,
size_t period) {
57 size_t ru = val % period;
Definition: UtilityFunctions.hpp:26
static int bind2Core(int id)
Definition: UtilityFunctions.cpp:22