Skip to content

Commit 0e03e68

Browse files
This change is for uptime only.
PiperOrigin-RevId: 854101392
1 parent 7415bdc commit 0e03e68

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tsl/platform/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,7 @@ cc_library(
691691
deps = tf_windows_aware_platform_deps("platform_port") + [
692692
":platform",
693693
"@com_google_absl//absl/base:core_headers",
694+
"@com_google_absl//absl/time",
694695
"@xla//xla/tsl/platform:byte_order",
695696
"@xla//xla/tsl/platform:dynamic_annotations",
696697
"@xla//xla/tsl/platform:types",

tsl/platform/init_main.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ limitations under the License.
1616
#ifndef TENSORFLOW_TSL_PLATFORM_INIT_MAIN_H_
1717
#define TENSORFLOW_TSL_PLATFORM_INIT_MAIN_H_
1818

19+
#include "absl/time/time.h"
1920
namespace tsl {
2021
namespace port {
2122

2223
void InitMain(const char* usage, int* argc, char*** argv);
2324

25+
absl::Duration GetInitUptime();
26+
2427
} // namespace port
2528
} // namespace tsl
2629

0 commit comments

Comments
 (0)