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
}
#define LOGTITLE(log, tz)
Definition LogStream.h:16
const std::chrono::time_zone * T_LocalZone
Definition XPlatform.h:18
std::ostream & timestamp(std::ostream &out, T_LocalZone tz)
Definition LogStream.cpp:35
std::ostream & logTrace(std::ostream &out, T_LocalZone tz)
Definition LogStream.cpp:78
T_LocalZone local_zone()
Definition XPlatform.h:19