mosesdecoder/util/usage.hh

22 lines
536 B
C++
Raw Normal View History

#ifndef UTIL_USAGE_H
#define UTIL_USAGE_H
2013-01-18 19:58:54 +04:00
#include <cstddef>
#include <iosfwd>
2013-01-18 19:58:54 +04:00
#include <string>
#include <stdint.h>
namespace util {
// Time in seconds since process started. Zero on unsupported platforms.
double WallTime();
void PrintUsage(std::ostream &to);
2013-01-18 19:58:54 +04:00
// Determine how much physical memory there is. Return 0 on failure.
uint64_t GuessPhysicalMemory();
// Parse a size like unix sort. Sadly, this means the default multiplier is K.
uint64_t ParseSize(const std::string &arg);
} // namespace util
#endif // UTIL_USAGE_H