\hypertarget{classEightBitTime}{
\section{EightBitTime Class Reference}
\label{classEightBitTime}\index{EightBitTime@{EightBitTime}}
}


Helper class to encode a \hyperlink{classTimeVal}{TimeVal} as an 8 bit binary floating point value.  




{\ttfamily \#include $<$olsr\_\-types.hh$>$}

\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classEightBitTime_ae915f8aab10843f3d9da8a4786bfe5ab}{
static \hyperlink{classTimeVal}{TimeVal} \hyperlink{classEightBitTime_ae915f8aab10843f3d9da8a4786bfe5ab}{to\_\-timeval} (const uint8\_\-t byte)}
\label{classEightBitTime_ae915f8aab10843f3d9da8a4786bfe5ab}

\begin{DoxyCompactList}\small\item\em Helper function to convert from a \hyperlink{classTimeVal}{TimeVal} to \hyperlink{protocolthe-p}{the} eight-\/bit floating point format used by OLSR. \item\end{DoxyCompactList}\item 
\hypertarget{classEightBitTime_a8f2d21051d686c5219917a29dd531c2a}{
static uint8\_\-t \hyperlink{classEightBitTime_a8f2d21051d686c5219917a29dd531c2a}{from\_\-timeval} (const \hyperlink{classTimeVal}{TimeVal} \&tv)}
\label{classEightBitTime_a8f2d21051d686c5219917a29dd531c2a}

\begin{DoxyCompactList}\small\item\em Helper function to convert \hyperlink{protocolthe-p}{the} eight-\/bit floating point format used by OLSR to a \hyperlink{classTimeVal}{TimeVal}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classEightBitTime_a76bc9d4e64dfc2b901ee6821df683420}{
static const int {\bfseries \_\-mod} = 16}
\label{classEightBitTime_a76bc9d4e64dfc2b901ee6821df683420}

\item 
\hypertarget{classEightBitTime_a30335fbb84119aed482ae15c95592fa6}{
static const double {\bfseries \_\-scaling\_\-factor} = 0.0625f}
\label{classEightBitTime_a30335fbb84119aed482ae15c95592fa6}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Helper class to encode a \hyperlink{classTimeVal}{TimeVal} as an 8 bit binary floating point value. 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/contrib/olsr/olsr\_\-types.hh\item 
/home/greearb/git/xorp.ct.github/xorp/contrib/olsr/olsr\_\-types.cc\end{DoxyCompactItemize}
