Euphoria
timepoint.cc
Go to the documentation of this file.
1 #include "core/timepoint.h"
2 
3 namespace eu::core
4 {
7  {
8  return std::chrono::steady_clock::now();
9  }
10 
11  float
12  get_seconds_between(const TimePoint& start, const TimePoint& end)
13  {
14  const std::chrono::duration<float> diff = end-start;
15  return diff.count();
16  }
17 }
18 
std::chrono::time_point< std::chrono::steady_clock > TimePoint
Definition: timepoint.h:8
TimePoint get_current_timepoint()
Definition: timepoint.cc:6
float get_seconds_between(const TimePoint &start, const TimePoint &end)
Definition: timepoint.cc:12