// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Copyright (C) 2017 Red Hat Inc. * * Author: J. Eric Ivancich * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version * 2.1, as published by the Free Software Foundation. See file * COPYING. */ #pragma once #include #include #include #include #include #include namespace crimson { namespace dmclock { // we're using double to represent time, but we could change it by // changing the following declarations (and by making sure a min // function existed) using Time = double; static const Time TimeZero = 0.0; static const Time TimeMax = std::numeric_limits