mosesdecoder/util/usage.hh
Kenneth Heafield a70d37e46f KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9.
unistd.hh is dead.
2015-05-19 15:27:30 -04:00

24 lines
556 B
C++

#ifndef UTIL_USAGE_H
#define UTIL_USAGE_H
#include <cstddef>
#include <iosfwd>
#include <string>
#include <stdint.h>
namespace util {
// Time in seconds since process started. Zero on unsupported platforms.
double WallTime();
double UserTime();
void PrintUsage(std::ostream &to);
// 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