From 7ea3cc2529be5eb4db21ade0355de43b73425485 Mon Sep 17 00:00:00 2001 From: Xavier Elattaoui <xavier.elattaoui@synchrotron-soleil.fr> Date: Thu, 12 Jan 2017 11:38:36 +0000 Subject: [PATCH] Compile errors fixed (last?) --- src/Waveform.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Waveform.cpp b/src/Waveform.cpp index b2b5359..366242c 100644 --- a/src/Waveform.cpp +++ b/src/Waveform.cpp @@ -113,7 +113,7 @@ oss << "WaveForm_data::get_waveform_data( ) -> ENTERING ..." << std::endl; //- send the request SocketLecroy::get_instance( )->TCP_WriteDevice(cmdStr,length,true); - time_to_write_data = t.elapsed_msec; + time_to_write_data = t.elapsed_msec(); oss << "\tTime to WRITE command : " << time_to_write_data << std::endl; //- delete cmd allocation @@ -151,7 +151,7 @@ oss << "\tTime to WRITE command : " << time_to_write_data << std::endl; try { SocketLecroy::get_instance( )->TCP_ReadDevice(ptrRawData,length,&response_length); - time_to_read_data = t.elapsed_msec - time_to_write_data; + time_to_read_data = t.elapsed_msec() - time_to_write_data; oss << "\tTime to READ " << response_length << " data : " << time_to_read_data << std::endl; //std::cout << "\t WaveForm_data::get_waveform_data( ) -> READ DONE, respLgth = " << response_length << std::endl; } @@ -215,7 +215,7 @@ oss << "\tTime to READ " << response_length << " data : " << time_to_read_data < vertical_scaled_waveform_data[idx] = (waveBlockData->vertical_gain * sh_raw_waveform_data[idx]) - waveBlockData->vertical_offset; //std::cout << "\t WaveForm_data::get_waveform_data( ) -> LOOP idx = " << idx << std::endl; } - time_to_copy_data = t.elapsed_msec - time_to_read_data; + time_to_copy_data = t.elapsed_msec() - time_to_read_data; oss << "\tTime to COPY " << response_length << " data : " << time_to_copy_data << std::ends; time_to_get_waveformData = oss.str(); -- GitLab