|
micro-test-plus 6.0.0
µTest++ Testing Framework
|
C++ source file with implementations for the µTest++ stopwatch. More...
#include "micro-os-plus/micro-test-plus/stopwatch.h"Go to the source code of this file.
Namespaces | |
| namespace | micro_os_plus |
| The primary namespace for the µOS++ framework. | |
| namespace | micro_os_plus::micro_test_plus |
| Primary namespace for the µTest++ testing framework. | |
| namespace | micro_os_plus::micro_test_plus::detail |
| Internal implementation details for the µTest++ framework. | |
Functions | |
| void | micro_os_plus::micro_test_plus::detail::read_clock (timespec &ts) noexcept |
| Reads the system clock. | |
This source file contains the implementation of the stopwatch class of the µTest++ framework. It provides the member functions that read the system clock (monotonic on POSIX) at the start and at the end of the measured interval, and that compute the elapsed time between the two readings, and read_clock(), which isolates the platform-specific access to the system clock.
All definitions reside within the micro_os_plus::micro_test_plus::detail namespace.
This file must be included when building the µTest++ library.
Definition in file stopwatch.cpp.