Searched refs:EnvTime (Results 1 – 18 of 18) sorted by relevance
25 class PosixEnvTime : public EnvTime {40 EnvTime* EnvTime::Default() { in Default()41 static EnvTime* default_env_time = new PosixEnvTime; in Default()
26 class EnvTime {36 EnvTime();37 virtual ~EnvTime() = default;43 static EnvTime* Default();
20 EnvTime::EnvTime() {} in EnvTime() function in tensorflow::EnvTime
330 EnvTime* envTime = EnvTime::Default();
30 class WindowsEnvTime : public EnvTime {82 EnvTime* EnvTime::Default() { in Default()83 static EnvTime* default_time_env = new WindowsEnvTime; in Default()
73 explicit GcsThrottle(EnvTime* env_time = EnvTime::Default());161 EnvTime* const env_time_;
22 GcsThrottle::GcsThrottle(EnvTime* env_time) in GcsThrottle()
25 class TestTime : public EnvTime {
29 constexpr int kOptimizationPeriodThresholdMs = 60 * EnvTime::kSecondsToMicros;167 ctx->env()->NowMicros() / EnvTime::kMillisToMicros) { in OptimizeThread()171 ctx->env()->NowMicros() / EnvTime::kMillisToMicros)); in OptimizeThread()186 ctx->env()->NowMicros() / EnvTime::kMillisToMicros; in OptimizeThread()
108 EnvTime::kMicrosToPicos); in ConvertRunMetadataToTraceEvent()110 EnvTime::kMicrosToPicos); in ConvertRunMetadataToTraceEvent()157 start_time_micros_(Env::Default()->NowNanos() / EnvTime::kMicrosToNanos) { in ProfilerSession()
156 Env::Default()->SleepForMicroseconds(1 * EnvTime::kMillisToMicros); in TEST()167 Env::Default()->SleepForMicroseconds(100 * EnvTime::kMillisToMicros); in TEST()196 Env::Default()->SleepForMicroseconds(1 * EnvTime::kMillisToMicros); in TEST()
104 ns->set_all_start_micros(event.start_time / EnvTime::kMicrosToNanos); in CollectDataToCollector()106 EnvTime::kMicrosToNanos); in CollectDataToCollector()
105 stats_->set_all_start_micros(now_nanos / EnvTime::kMicrosToNanos); in RecordExecutorStarted()113 stats_->set_op_start_rel_micros(now_nanos / EnvTime::kMicrosToNanos - in RecordComputeStarted()122 stats_->set_op_end_rel_micros(now_nanos / EnvTime::kMicrosToNanos - in RecordComputeEnded()131 stats_->set_all_end_rel_micros(now_nanos / EnvTime::kMicrosToNanos - in RecordExecutorEnded()137 stats_->set_scheduled_micros(nanos / EnvTime::kMicrosToNanos); in SetScheduled()
85 stats->SetScheduled(micros * EnvTime::kMicrosToNanos); in SetScheduled()
80 static EnvTime* env_time = tensorflow::EnvTime::Default();
153 EnvTime::kMicrosToNanos); in MaybeCopyInputToExpectedDevice()157 EnvTime::kMicrosToNanos); in MaybeCopyInputToExpectedDevice()160 EnvTime::kMicrosToNanos); in MaybeCopyInputToExpectedDevice()490 maybe_stats->set_all_start_micros(now_nanos / EnvTime::kMicrosToNanos); in EagerLocalExecute()494 maybe_stats->set_scheduled_micros(now_nanos / EnvTime::kMicrosToNanos); in EagerLocalExecute()978 maybe_stats->set_op_end_rel_micros(nanos / EnvTime::kMicrosToNanos - in EagerKernelExecute()981 maybe_stats->set_all_end_rel_micros(nanos / EnvTime::kMicrosToNanos - in EagerKernelExecute()
377 tensorflow::EnvTime::kSecondsToMicros); in TEST_F()397 tensorflow::EnvTime::kSecondsToMicros); in TEST_F()
111 destroy_after_secs * tensorflow::EnvTime::kSecondsToMicros; in ServerContext()