summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-19 01:21:34 -0700
committerJosh Blum <josh@joshknows.com>2010-10-19 01:21:34 -0700
commitcd05791ac1f8a844517add54f005d019b201ebcd (patch)
tree7dcaf4e3a4829c653b38b1b89ccbcc1da9a69a54 /host/include
parent816a07bee54e998e4fb25beeb44b9ac3888189bf (diff)
downloaduhd-cd05791ac1f8a844517add54f005d019b201ebcd.tar.gz
uhd-cd05791ac1f8a844517add54f005d019b201ebcd.tar.bz2
uhd-cd05791ac1f8a844517add54f005d019b201ebcd.zip
uhd: made ticks signed in time spec, fixed full secs implementation, added unit tests
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/types/time_spec.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/include/uhd/types/time_spec.hpp b/host/include/uhd/types/time_spec.hpp
index 59b85f4b7..57d002d48 100644
--- a/host/include/uhd/types/time_spec.hpp
+++ b/host/include/uhd/types/time_spec.hpp
@@ -59,7 +59,7 @@ namespace uhd{
* \param tick_count the fractional seconds tick count
* \param tick_rate the number of ticks per second
*/
- time_spec_t(time_t full_secs, size_t tick_count, double tick_rate);
+ time_spec_t(time_t full_secs, long tick_count, double tick_rate);
/*!
* Convert the fractional seconds to clock ticks.
@@ -67,7 +67,7 @@ namespace uhd{
* \param tick_rate the number of ticks per second
* \return the fractional seconds tick count
*/
- size_t get_tick_count(double tick_rate) const;
+ long get_tick_count(double tick_rate) const;
/*!
* Get the time as a real-valued seconds count.