• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "base/CpuTime.h"
2 
3 #include <string>
4 
5 namespace android {
6 namespace base {
7 
8 std::string getEnvironmentVariable(const std::string& key);
9 void setEnvironmentVariable(const std::string& key, const std::string& value);
10 bool isVerboseLogging();
11 
12 uint64_t getUnixTimeUs();
13 uint64_t getHighResTimeUs();
14 
15 uint64_t getUptimeMs();
16 
17 std::string getProgramDirectory();
18 std::string getLauncherDirectory();
19 
20 bool getFileSize(int fd, uint64_t* size);
21 
22 void sleepMs(uint64_t ms);
23 void sleepUs(uint64_t us);
24 
25 CpuTime cpuTime();
26 
27 bool queryFileVersionInfo(const char* filename, int* major, int* minor, int* build1, int* build2);
28 
29 int getCpuCoreCount();
30 
31 } // namespace base
32 } // namespace android
33