Revision 852d0468
Added by David Sorber over 4 years ago
| software/fixed/parse_test.cc | ||
|---|---|---|
|
<< " ms" << std::endl;
|
||
|
}
|
||
|
#endif
|
||
|
// 5)
|
||
|
else if (parseType == 5)
|
||
|
{
|
||
|
std::cout << "Parse type 5: fixed_128_128" << std::endl;
|
||
|
auto start = std::chrono::system_clock::now();
|
||
|
for (auto& strValue : values)
|
||
|
{
|
||
|
fvalue.parse(strValue.c_str());
|
||
|
//~ std::cout << "In: " << strValue << " -- Out: " << fvalue << std::endl;
|
||
|
}
|
||
|
auto end = std::chrono::system_clock::now();
|
||
|
auto diff = end - start;
|
||
|
std::cout << "Total parse time: "
|
||
|
<< std::chrono::duration <double, std::milli>(diff).count()
|
||
|
<< " ms" << std::endl;
|
||
|
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
std::cerr << "ERROR: invalid parse type: " << parseType << std::endl;
|
||
Modify template to include parameters for strtoXXX functions. Also begin
integrating support for 128 bit integer types.