process_info.h 686 B

12345678910111213141516171819202122232425
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_PROCESS_PROCESS_PROCESS_INFO_H_
  5. #define BASE_PROCESS_PROCESS_PROCESS_INFO_H_
  6. #include "butil/base_export.h"
  7. #include "butil/basictypes.h"
  8. namespace butil {
  9. class Time;
  10. // Vends information about the current process.
  11. class BASE_EXPORT CurrentProcessInfo {
  12. public:
  13. // Returns the time at which the process was launched. May be empty if an
  14. // error occurred retrieving the information.
  15. static const Time CreationTime();
  16. };
  17. } // namespace butil
  18. #endif // BASE_PROCESS_PROCESS_PROCESS_INFO_H_