X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fdmclock%2Fsrc%2Fdmclock_util.h;fp=src%2Fceph%2Fsrc%2Fdmclock%2Fsrc%2Fdmclock_util.h;h=c46d09f39319a53e96f936abd25bb11e241c8110;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/dmclock/src/dmclock_util.h b/src/ceph/src/dmclock/src/dmclock_util.h new file mode 100644 index 0000000..c46d09f --- /dev/null +++ b/src/ceph/src/dmclock/src/dmclock_util.h @@ -0,0 +1,53 @@ +// -*- 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. + */ + + +#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