|
template<typename InputIt > |
void | record (InputIt begin, InputIt end) |
|
void | record (std::chrono::system_clock::time_point when) |
|
void | print (const std::string &prefix) |
|
|
typedef std::chrono::time_point< std::chrono::system_clock, std::chrono::milliseconds > | mapTimeType |
|
Definition at line 177 of file fileopstest.cpp.
◆ mapTimeType
◆ print()
void timeRecords::print |
( |
const std::string & |
prefix | ) |
|
|
inline |
Definition at line 191 of file fileopstest.cpp.
192 for (
const auto& it :
timeMap) {
193 auto then = std::chrono::system_clock::to_time_t(it.first);
194 auto milliseconds = std::chrono::duration_cast<std::chrono::milliseconds>(it.first.time_since_epoch()).count() % 1000;
195 std::cout << prefix <<
198 <<
"." << std::setw(3) << std::setfill(
'0') << milliseconds <<
" " << it.second <<
"\n";
References timeMap.
Referenced by main().
◆ record() [1/2]
template<typename InputIt >
void timeRecords::record |
( |
InputIt |
begin, |
|
|
InputIt |
end |
|
) |
| |
|
inline |
◆ record() [2/2]
void timeRecords::record |
( |
std::chrono::system_clock::time_point |
when | ) |
|
|
inline |
◆ recordMutex
std::mutex timeRecords::recordMutex |
|
private |
◆ timeMap
std::map<mapTimeType, unsigned int> timeRecords::timeMap |
|
private |
The documentation for this class was generated from the following file: