bux API Reference
1.11.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
Loading...
Searching...
No Matches
test/smoke_timestamp.cpp
#include <
bux/LogStream.h
>
// bux::timestamp(), bux::logTrace(), LOGTITLE()
#include <iostream>
// std::cout
int
main()
{
//std::cout <<bux::timestamp <<'\n';
bux::timestamp
(std::cout) <<
'\n'
;
// system time
bux::timestamp
(std::cout,
bux::local_zone
()) <<
'\n'
;
// local timd
//std::cout <<bux::logTrace <<'\n';
bux::logTrace
(std::cout) <<
'\n'
;
// system time
bux::logTrace
(std::cout,
bux::local_zone
()) <<
'\n'
;
// local time
LOGTITLE
(std::cout,
bux::T_LocalZone
()) <<
"Hello !!!\n"
;
// system time
LOGTITLE
(std::cout,
bux::local_zone
()) <<
"Hello !!!\n"
;
// local time
}
LogStream.h
LOGTITLE
#define LOGTITLE(log, tz)
Definition
LogStream.h:16
bux::T_LocalZone
const std::chrono::time_zone * T_LocalZone
Definition
XPlatform.h:18
bux::timestamp
std::ostream & timestamp(std::ostream &out, T_LocalZone tz)
Definition
LogStream.cpp:35
bux::logTrace
std::ostream & logTrace(std::ostream &out, T_LocalZone tz)
Definition
LogStream.cpp:78
bux::local_zone
T_LocalZone local_zone()
Definition
XPlatform.h:19
Generated by
1.13.2