implement Scalar::GetDouble
This commit is contained in:
@@ -240,7 +240,7 @@ public:
|
||||
Scalar ();
|
||||
Scalar (double scalar);
|
||||
Scalar (TimeUnit<0> scalar);
|
||||
double Get (void) const;
|
||||
double GetDouble (void) const;
|
||||
};
|
||||
|
||||
typedef TimeUnit<-1> TimeInvert;
|
||||
|
||||
@@ -98,6 +98,12 @@ Scalar::Scalar (double scalar)
|
||||
: TimeUnit<0> (HighPrecision (scalar))
|
||||
{}
|
||||
|
||||
double
|
||||
Scalar::GetDouble (void) const
|
||||
{
|
||||
return GetHighPrecision ().GetDouble ();
|
||||
}
|
||||
|
||||
}; // namespace ns3
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user