| 62 | @return The ostringstream and the time it took to save the data */ |
| 63 | template <class T> |
| 64 | std::chrono::nanoseconds |
| 65 | saveData( T const & data, std::function<void(std::ostringstream &, T const&)> saveFunction, std::ostringstream & os ) |
| 66 | { |
| 67 | auto start = std::chrono::high_resolution_clock::now(); |
| 68 | saveFunction( os, data ); |
| 69 | return std::chrono::duration_cast<std::chrono::nanoseconds>( std::chrono::high_resolution_clock::now() - start ); |
| 70 | } |
| 71 | |
| 72 | //! Runs serialization to load data to from an istringstream |
| 73 | /*! Used to time how long it takes to load data from an istringstream. |
nothing calls this directly
no outgoing calls
no test coverage detected