Home
last modified time | relevance | path

Searched refs:TimeDelta (Results 1 – 25 of 28) sorted by relevance

12

/external/v8/src/base/platform/
Dtime.h33 class TimeDelta FINAL {
35 TimeDelta() : delta_(0) {} in TimeDelta() function
38 static TimeDelta FromDays(int days);
39 static TimeDelta FromHours(int hours);
40 static TimeDelta FromMinutes(int minutes);
41 static TimeDelta FromSeconds(int64_t seconds);
42 static TimeDelta FromMilliseconds(int64_t milliseconds);
43 static TimeDelta FromMicroseconds(int64_t microseconds) { in FromMicroseconds()
44 return TimeDelta(microseconds); in FromMicroseconds()
46 static TimeDelta FromNanoseconds(int64_t nanoseconds);
[all …]
Dtime-unittest.cc24 TEST(TimeDelta, FromAndIn) { in TEST() argument
25 EXPECT_EQ(TimeDelta::FromDays(2), TimeDelta::FromHours(48)); in TEST()
26 EXPECT_EQ(TimeDelta::FromHours(3), TimeDelta::FromMinutes(180)); in TEST()
27 EXPECT_EQ(TimeDelta::FromMinutes(2), TimeDelta::FromSeconds(120)); in TEST()
28 EXPECT_EQ(TimeDelta::FromSeconds(2), TimeDelta::FromMilliseconds(2000)); in TEST()
29 EXPECT_EQ(TimeDelta::FromMilliseconds(2), TimeDelta::FromMicroseconds(2000)); in TEST()
30 EXPECT_EQ(static_cast<int>(13), TimeDelta::FromDays(13).InDays()); in TEST()
31 EXPECT_EQ(static_cast<int>(13), TimeDelta::FromHours(13).InHours()); in TEST()
32 EXPECT_EQ(static_cast<int>(13), TimeDelta::FromMinutes(13).InMinutes()); in TEST()
33 EXPECT_EQ(static_cast<int64_t>(13), TimeDelta::FromSeconds(13).InSeconds()); in TEST()
[all …]
Dtime.cc29 TimeDelta TimeDelta::FromDays(int days) { in FromDays()
30 return TimeDelta(days * Time::kMicrosecondsPerDay); in FromDays()
34 TimeDelta TimeDelta::FromHours(int hours) { in FromHours()
35 return TimeDelta(hours * Time::kMicrosecondsPerHour); in FromHours()
39 TimeDelta TimeDelta::FromMinutes(int minutes) { in FromMinutes()
40 return TimeDelta(minutes * Time::kMicrosecondsPerMinute); in FromMinutes()
44 TimeDelta TimeDelta::FromSeconds(int64_t seconds) { in FromSeconds()
45 return TimeDelta(seconds * Time::kMicrosecondsPerSecond); in FromSeconds()
49 TimeDelta TimeDelta::FromMilliseconds(int64_t milliseconds) { in FromMilliseconds()
50 return TimeDelta(milliseconds * Time::kMicrosecondsPerMillisecond); in FromMilliseconds()
[all …]
Dsemaphore-unittest.cc81 ASSERT_FALSE(semaphore_->WaitFor(TimeDelta::FromMicroseconds(1))); in Run()
123 EXPECT_FALSE(semaphore.WaitFor(TimeDelta::FromMicroseconds(1))); in TEST()
131 ASSERT_FALSE(semaphore.WaitFor(TimeDelta::FromMicroseconds(0))); in TEST()
132 ASSERT_FALSE(semaphore.WaitFor(TimeDelta::FromMicroseconds(100))); in TEST()
133 ASSERT_FALSE(semaphore.WaitFor(TimeDelta::FromMicroseconds(1000))); in TEST()
137 ASSERT_TRUE(semaphore.WaitFor(TimeDelta::FromMicroseconds(0))); in TEST()
139 ASSERT_TRUE(semaphore.WaitFor(TimeDelta::FromMicroseconds(100))); in TEST()
141 ASSERT_TRUE(semaphore.WaitFor(TimeDelta::FromMicroseconds(1000))); in TEST()
Delapsed-timer.h55 TimeDelta Restart() { in Restart()
58 TimeDelta elapsed = ticks - start_ticks_; in Restart()
67 TimeDelta Elapsed() const { in Elapsed()
69 TimeDelta elapsed = Now() - start_ticks_; in Elapsed()
77 bool HasExpired(TimeDelta time_delta) const { in HasExpired()
Dsemaphore.h23 class TimeDelta; variable
50 bool WaitFor(const TimeDelta& rel_time) WARN_UNUSED_RESULT;
Dcondition-variable.h16 class TimeDelta; variable
59 bool WaitFor(Mutex* mutex, const TimeDelta& rel_time) WARN_UNUSED_RESULT;
Dsemaphore.cc54 bool Semaphore::WaitFor(const TimeDelta& rel_time) { in WaitFor()
109 bool Semaphore::WaitFor(const TimeDelta& rel_time) {
178 bool Semaphore::WaitFor(const TimeDelta& rel_time) {
Dcondition-variable.cc71 bool ConditionVariable::WaitFor(Mutex* mutex, const TimeDelta& rel_time) { in WaitFor()
285 bool ConditionVariable::WaitFor(Mutex* mutex, const TimeDelta& rel_time) {
Dcondition-variable-unittest.cc22 EXPECT_FALSE(cv.WaitFor(&mutex, TimeDelta::FromMicroseconds(n))); in TEST()
25 EXPECT_FALSE(cv.WaitFor(&mutex, TimeDelta::FromMicroseconds(n))); in TEST()
/external/v8/tools/
Dparser-shell.cc60 std::pair<v8::base::TimeDelta, v8::base::TimeDelta> RunBaselineParser( in RunBaselineParser()
85 v8::base::TimeDelta parse_time1, parse_time2; in RunBaselineParser()
102 return std::make_pair(v8::base::TimeDelta(), v8::base::TimeDelta()); in RunBaselineParser()
118 return std::make_pair(v8::base::TimeDelta(), v8::base::TimeDelta()); in RunBaselineParser()
163 std::pair<v8::base::TimeDelta, v8::base::TimeDelta> time = in main()
Dlexer-shell.cc131 v8::base::TimeDelta RunBaselineScanner(const char* fname, Isolate* isolate, in RunBaselineScanner()
160 v8::base::TimeDelta ProcessFile( in ProcessFile()
171 v8::base::TimeDelta baseline_time; in ProcessFile()
222 v8::base::TimeDelta time; in main()
/external/v8/src/
Dcpu-profiler.h129 base::TimeDelta period);
168 const base::TimeDelta period_;
203 void set_sampling_interval(base::TimeDelta value);
259 base::TimeDelta sampling_interval_;
Doptimizing-compiler-thread.h131 base::TimeDelta time_spent_compiling_;
132 base::TimeDelta time_spent_total_;
Dcompiler.h624 base::TimeDelta time_taken_to_create_graph_;
625 base::TimeDelta time_taken_to_optimize_;
626 base::TimeDelta time_taken_to_codegen_;
637 Timer(OptimizedCompileJob* job, base::TimeDelta* location) in Timer()
649 base::TimeDelta* location_;
Dcpu-profiler.cc26 base::TimeDelta period) in ProfilerEventsProcessor()
372 sampling_interval_(base::TimeDelta::FromMicroseconds( in CpuProfiler()
386 sampling_interval_(base::TimeDelta::FromMicroseconds( in CpuProfiler()
401 void CpuProfiler::set_sampling_interval(base::TimeDelta value) { in set_sampling_interval()
Dhydrogen.h2759 void SaveTiming(const char* name, base::TimeDelta time, unsigned size);
2761 void IncrementFullCodeGen(base::TimeDelta full_code_gen) { in IncrementFullCodeGen()
2765 void IncrementCreateGraph(base::TimeDelta delta) { create_graph_ += delta; } in IncrementCreateGraph()
2767 void IncrementOptimizeGraph(base::TimeDelta delta) { in IncrementOptimizeGraph()
2771 void IncrementGenerateCode(base::TimeDelta delta) { generate_code_ += delta; } in IncrementGenerateCode()
2773 void IncrementSubtotals(base::TimeDelta create_graph, in IncrementSubtotals()
2774 base::TimeDelta optimize_graph, in IncrementSubtotals()
2775 base::TimeDelta generate_code) { in IncrementSubtotals()
2782 List<base::TimeDelta> times_;
2785 base::TimeDelta create_graph_;
[all …]
Dd8.cc342 base::TimeDelta delta = in PerformanceNow()
Dlithium-allocator.cc2180 isolate()->GetHStatistics()->SaveTiming(name(), base::TimeDelta(), size); in ~LAllocatorPhase()
Dhydrogen.cc12457 base::TimeDelta sum; in Print()
12476 base::TimeDelta total = create_graph_ + optimize_graph_ + generate_code_; in Print()
12503 void HStatistics::SaveTiming(const char* name, base::TimeDelta time, in SaveTiming()
/external/v8/src/heap/
Dsweeper-thread.cc66 bool value = end_sweeping_semaphore_.WaitFor(base::TimeDelta::FromSeconds(0)); in SweepingCompleted()
Dmark-compact.cc617 base::TimeDelta::FromSeconds(0))) { in IsSweepingCompleted()
/external/v8/src/compiler/
Dpipeline.cc53 base::TimeDelta delta = timer_.Elapsed(); in ~PhaseStats()
Dregister-allocator.cc2224 isolate()->GetTStatistics()->SaveTiming(name(), base::TimeDelta(), size); in ~RegisterAllocatorPhase()
/external/v8/test/cctest/
Dtest-cpu-profiler.cc57 &generator, NULL, v8::base::TimeDelta::FromMicroseconds(100))); in TEST()
145 &generator, NULL, v8::base::TimeDelta::FromMicroseconds(100))); in TEST()
206 &generator, NULL, v8::base::TimeDelta::FromMicroseconds(100))); in TEST()
275 &generator, NULL, v8::base::TimeDelta::FromMicroseconds(100))); in TEST()

12