aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-03-06 17:53:21 -0800
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:11 -0800
commit01d71420eff77336c23ef70459d17b44810e3a99 (patch)
treea4331126394f5a31a7a8c4e6934dd54cf61a00c4 /host/include
parenta834e2b44a79f86dae75564d2e0b27ee8eeca51e (diff)
downloaduhd-01d71420eff77336c23ef70459d17b44810e3a99.tar.gz
uhd-01d71420eff77336c23ef70459d17b44810e3a99.tar.bz2
uhd-01d71420eff77336c23ef70459d17b44810e3a99.zip
types: time_spec: Add ASAP value
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/types/time_spec.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/include/uhd/types/time_spec.hpp b/host/include/uhd/types/time_spec.hpp
index 89655807e..b70616e73 100644
--- a/host/include/uhd/types/time_spec.hpp
+++ b/host/include/uhd/types/time_spec.hpp
@@ -31,6 +31,9 @@ class UHD_API time_spec_t : boost::additive<time_spec_t>,
boost::totally_ordered<time_spec_t>
{
public:
+ // A special value that signifies immediate execution
+ static constexpr double ASAP = 0.0;
+
/*!
* Create a time_spec_t from a real-valued seconds count.
* \param secs the real-valued seconds count (default = 0)