History log of /5.5.2/platform/tests/timeutils/ (Results 1 - 2 of 2)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
Revision tags: v6.0.3, v5.5.4, v5.5.0, v4.6.5
8590b74612-Sep-2017 Eugen-Alexandru Virtan <eugen.virtan@couchbase.com>

MB-25929: Change hrtime2text(timeutils.h) to use <chrono> time unit

Crate new method time2text() which uses std::chrono::nanoseconds
instead of hrtime_t. This ensures the time is always

MB-25929: Change hrtime2text(timeutils.h) to use <chrono> time unit

Crate new method time2text() which uses std::chrono::nanoseconds
instead of hrtime_t. This ensures the time is always represented in
nanoseconds. It automatically converts larger time units to
nanoseconds (eg. s to ns), and throws a compile time error if a
conversion that would result in a loss of precision is attempted (eg.
any time unit smaller than ns to ns).
Keep hrtime2text() for copatibility purposes. Change implementation
to make use of the time2text().
Change tests to use std::chrono and test time2text().

Change-Id: Ib7550377bf1e5f003886f3fcb1128fd689935083
Reviewed-on: http://review.couchbase.org/83308
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...

Revision tags: v5.0.0, v4.6.0, v4.6.0-DP, v4.5.1-MP1, v4.5.1, v4.5.0
4e19c8c217-Dec-2015 Trond Norbye <trond.norbye@gmail.com>

Add hrtime2text function

Presenting a hrtime_t to a user is not a nice thing to do
when the time is higher than a usec value (not very readable)

Change-Id: Id041c5ad99130341afdf

Add hrtime2text function

Presenting a hrtime_t to a user is not a nice thing to do
when the time is higher than a usec value (not very readable)

Change-Id: Id041c5ad99130341afdfa9e460f9ba283a76a4c4
Reviewed-on: http://review.couchbase.org/57898
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...