Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include "mlpack\core.hpp"
- int main(int argc, char** argv)
- {
- //pass main's arguments..
- mlpack::CLI::ParseCommandLine(argc, argv);
- //some_timer starts ticking..
- mlpack::Timer::Start("some_timer");
- //some outputs..
- mlpack::Log::Debug << "Compiled with debugging symbols." << std::endl;
- mlpack::Log::Info << "Some test informational output." << std::endl;
- mlpack::Log::Warn << "A warning!" << std::endl;
- //better comment it or..
- //mlpack::Log::Fatal << "Program has crashed." << std::endl;
- mlpack::Log::Warn << "Made it!" << std::endl;
- //some_timer stops..
- mlpack::Timer::Stop("some_timer");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement