added printing info how much time winix spent in the ezc engine
added to Request: timespec timespec_req_stop; timespec timespec_req_diff; timespec timespec_ezc_engine_start; timespec timespec_ezc_engine_stop;
This commit is contained in:
@@ -987,6 +987,35 @@ bool wide_to_utf8(const wchar_t * wide_string, char * utf8, size_t utf8_siz
|
||||
bool wide_to_utf8(const std::wstring & wide_string, char * utf8, size_t utf8_size);
|
||||
|
||||
|
||||
/*
|
||||
* calculate diff between start and stop timespec
|
||||
*
|
||||
* if start is greater than stop then the result is negative:
|
||||
* - result.tv_sec is less than zero
|
||||
* - result.tv_nsec is greater than or equal to zero (only if start.tv_nsec and stop.tv_nsec are correct values from zero to 1000000000L)
|
||||
*
|
||||
* 'double' value can be calculated in this way:
|
||||
* double res = result.tv_sec + result.tv_nsec / 1000000000.0;
|
||||
*
|
||||
*/
|
||||
void calculate_timespec_diff(timespec & start, timespec & stop, timespec & result);
|
||||
|
||||
|
||||
/*
|
||||
* converts timespec to double in the following way:
|
||||
* double val_double = val.tv_sec + val.tv_nsec / 1000000000.0;
|
||||
*
|
||||
* val.tv_sec can be negative (less than zero) but tv_nsec should be in the range [0, 1000000000.0)
|
||||
*
|
||||
*/
|
||||
double timespec_to_double(timespec & val);
|
||||
|
||||
|
||||
|
||||
void timespec_to_stream(timespec & val, pt::Stream & stream);
|
||||
|
||||
|
||||
|
||||
|
||||
} // namespace Winix
|
||||
|
||||
|
Reference in New Issue
Block a user