Home
last modified time | relevance | path

Searched refs:time_ms (Results 1 – 25 of 26) sorted by relevance

12

/third_party/node/deps/v8/src/date/
Ddate.h53 static int DaysFromTime(int64_t time_ms) { in DaysFromTime() argument
54 if (time_ms < 0) time_ms -= (kMsPerDay - 1); in DaysFromTime()
55 return static_cast<int>(time_ms / kMsPerDay); in DaysFromTime()
60 static int TimeInDay(int64_t time_ms, int days) { in TimeInDay() argument
61 return static_cast<int>(time_ms - days * kMsPerDay); in TimeInDay()
83 const char* LocalTimezone(int64_t time_ms) { in LocalTimezone() argument
84 if (time_ms < 0 || time_ms > kMaxEpochTimeInMs) { in LocalTimezone()
85 time_ms = EquivalentTime(time_ms); in LocalTimezone()
87 bool is_dst = DaylightSavingsOffsetInMs(time_ms) != 0; in LocalTimezone()
90 *name = tz_cache_->LocalTimezone(static_cast<double>(time_ms)); in LocalTimezone()
[all …]
Ddate.cc200 void DateCache::BreakDownTime(int64_t time_ms, int* year, int* month, int* day, in BreakDownTime() argument
203 int const days = DaysFromTime(time_ms); in BreakDownTime()
204 int const time_in_day_ms = TimeInDay(time_ms, days); in BreakDownTime()
215 int DateCache::GetLocalOffsetFromOS(int64_t time_ms, bool is_utc) { in GetLocalOffsetFromOS() argument
219 offset = tz_cache_->LocalTimeOffset(static_cast<double>(time_ms), is_utc); in GetLocalOffsetFromOS()
263 tz_cache_->LocalTimeOffset(static_cast<double>(time_ms), is_utc); in GetLocalOffsetFromOS()
268 time_ms -= (offset + kMsPerHour); in GetLocalOffsetFromOS()
270 offset += DaylightSavingsOffsetInMs(time_ms); in GetLocalOffsetFromOS()
297 int DateCache::DaylightSavingsOffsetInMs(int64_t time_ms) { in DaylightSavingsOffsetInMs() argument
298 int time_sec = (time_ms >= 0 && time_ms <= kMaxEpochTimeInMs) in DaylightSavingsOffsetInMs()
[all …]
/third_party/node/deps/v8/src/heap/
Dmemory-reducer.cc40 double time_ms = heap->MonotonicallyIncreasingTimeInMs(); in RunInternal() local
41 heap->tracer()->SampleAllocation(time_ms, heap->NewSpaceAllocationCounter(), in RunInternal()
53 event.time_ms = time_ms; in RunInternal()
97 ScheduleTimer(state_.next_gc_start_ms - event.time_ms); in NotifyTimer()
101 state_.next_gc_start_ms - event.time_ms); in NotifyTimer()
113 ScheduleTimer(state_.next_gc_start_ms - event.time_ms); in NotifyMarkCompact()
130 ScheduleTimer(state_.next_gc_start_ms - event.time_ms); in NotifyPossibleGarbage()
137 event.time_ms > state.last_gc_time_ms + kWatchdogDelayMs; in WatchdogGC()
159 return State(kWait, 0, event.time_ms + kLongDelayMs, in Step()
160 event.type == kMarkCompact ? event.time_ms in Step()
[all …]
Dgc-tracer.h334 double time_ms = 0) const;
340 double time_ms = 0) const;
346 double time_ms = 0) const;
351 double AllocationThroughputInBytesPerMillisecond(double time_ms) const;
442 const BytesAndDuration& initial, double time_ms);
Dgc-tracer.cc1062 const BytesAndDuration& initial, double time_ms) { in AverageSpeed() argument
1064 [time_ms](BytesAndDuration a, BytesAndDuration b) { in AverageSpeed()
1065 if (time_ms != 0 && a.second >= time_ms) return a; in AverageSpeed()
1228 double time_ms) const { in NewSpaceAllocationThroughputInBytesPerMillisecond()
1232 MakeBytesAndDuration(bytes, durations), time_ms); in NewSpaceAllocationThroughputInBytesPerMillisecond()
1236 double time_ms) const { in OldGenerationAllocationThroughputInBytesPerMillisecond()
1240 MakeBytesAndDuration(bytes, durations), time_ms); in OldGenerationAllocationThroughputInBytesPerMillisecond()
1244 double time_ms) const { in EmbedderAllocationThroughputInBytesPerMillisecond()
1248 MakeBytesAndDuration(bytes, durations), time_ms); in EmbedderAllocationThroughputInBytesPerMillisecond()
1252 double time_ms) const { in AllocationThroughputInBytesPerMillisecond()
[all …]
Dincremental-marking.cc731 void IncrementalMarking::ScheduleBytesToMarkBasedOnTime(double time_ms) { in ScheduleBytesToMarkBasedOnTime() argument
735 if (schedule_update_time_ms_ + kMinTimeBetweenScheduleInMs > time_ms) return; in ScheduleBytesToMarkBasedOnTime()
737 std::min(time_ms - schedule_update_time_ms_, kTargetMarkingWallTimeInMs); in ScheduleBytesToMarkBasedOnTime()
738 schedule_update_time_ms_ = time_ms; in ScheduleBytesToMarkBasedOnTime()
Dmemory-reducer.h110 double time_ms; member
Dconcurrent-marking.cc475 double time_ms; in Run() local
485 TimedScope scope(&time_ms); in Run()
576 static_cast<int>(marked_bytes / KB), time_ms); in Run()
Dincremental-marking.h247 void ScheduleBytesToMarkBasedOnTime(double time_ms);
Dheap.cc1893 event.time_ms = MonotonicallyIncreasingTimeInMs(); in CollectGarbage()
1984 event.time_ms = MonotonicallyIncreasingTimeInMs(); in NotifyContextDisposed()
2057 event.time_ms = MonotonicallyIncreasingTimeInMs(); in StartIncrementalMarkingIfAllocationLimitIsReached()
3859 event.time_ms = MonotonicallyIncreasingTimeInMs(); in ActivateMemoryReducerIfNeeded()
5989 event.time_ms = MonotonicallyIncreasingTimeInMs(); in NotifyOldGenerationExpansion()
/third_party/node/deps/v8/src/builtins/
Dbuiltins-date.cc246 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN() local
247 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN()
268 int64_t const time_ms = static_cast<int64_t>(date->value().Number()); in BUILTIN() local
269 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN()
306 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN() local
307 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN()
345 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN() local
346 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN()
367 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN() local
368 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN()
[all …]
/third_party/node/deps/v8/src/base/platform/
Dplatform-aix.cc56 double LocalTimeOffset(double time_ms, bool is_utc) override;
61 const char* AIXTimezoneCache::LocalTimezone(double time_ms) { in LocalTimezone() argument
62 if (std::isnan(time_ms)) return ""; in LocalTimezone()
63 time_t tv = static_cast<time_t>(floor(time_ms / msPerSecond)); in LocalTimezone()
70 double AIXTimezoneCache::LocalTimeOffset(double time_ms, bool is_utc) { in LocalTimeOffset() argument
Dplatform-posix-time.h15 const char* LocalTimezone(double time_ms) override;
16 double LocalTimeOffset(double time_ms, bool is_utc) override;
Dplatform-starboard.cc443 const char* LocalTimezone(double time_ms) override { in LocalTimezone() argument
446 double LocalTimeOffset(double time_ms, bool is_utc) override { in LocalTimeOffset() argument
453 double DaylightSavingsOffset(double time_ms) override { in DaylightSavingsOffset() argument
Dplatform-posix.h18 double DaylightSavingsOffset(double time_ms) override;
Dplatform-posix-time.cc21 double PosixDefaultTimezoneCache::LocalTimeOffset(double time_ms, bool is_utc) { in LocalTimeOffset() argument
Dplatform-cygwin.cc72 double LocalTimeOffset(double time_ms, bool is_utc) override;
86 double LocalTimeOffset(double time_ms, bool is_utc) { in LocalTimeOffset() argument
/third_party/node/deps/v8/src/base/
Dtimezone-cache.h14 virtual const char* LocalTimezone(double time_ms) = 0;
18 virtual double DaylightSavingsOffset(double time_ms) = 0;
24 virtual double LocalTimeOffset(double time_ms, bool is_utc) = 0;
/third_party/ltp/testcases/kernel/syscalls/perf_event_open/
Dperf_event_open02.c78 static void bench_work(int time_ms) in bench_work() argument
91 val.it_value.tv_sec = time_ms / 1000; in bench_work()
92 val.it_value.tv_usec = (time_ms % 1000) * 1000; in bench_work()
103 tst_res(TINFO, "bench_work estimated loops = %u in %d ms", est_loops, time_ms); in bench_work()
/third_party/ffmpeg/libavfilter/
Dvf_subtitles.c190 double time_ms = picref->pts * av_q2d(inlink->time_base) * 1000; in filter_frame() local
192 time_ms, &detect_change); in filter_frame()
195 av_log(ctx, AV_LOG_DEBUG, "Change happened at time ms:%f\n", time_ms); in filter_frame()
/third_party/node/deps/v8/src/objects/
Dintl-objects.cc2552 const char* LocalTimezone(double time_ms) override;
2554 double DaylightSavingsOffset(double time_ms) override;
2556 double LocalTimeOffset(double time_ms, bool is_utc) override;
2563 bool GetOffsets(double time_ms, bool is_utc, int32_t* raw_offset,
2572 const char* ICUTimezoneCache::LocalTimezone(double time_ms) { in LocalTimezone() argument
2573 bool is_dst = DaylightSavingsOffset(time_ms) != 0; in LocalTimezone()
2594 bool ICUTimezoneCache::GetOffsets(double time_ms, bool is_utc, in GetOffsets() argument
2598 GetTimeZone()->getOffset(time_ms, false, *raw_offset, *dst_offset, status); in GetOffsets()
2603 ->getOffsetFromLocal(time_ms, UCAL_TZ_LOCAL_FORMER, in GetOffsets()
2611 double ICUTimezoneCache::DaylightSavingsOffset(double time_ms) { in DaylightSavingsOffset() argument
[all …]
Djs-objects.cc5501 int64_t time_ms = static_cast<int64_t>(value); in GetUTCField() local
5504 return Smi::FromInt(date_cache->TimezoneOffset(time_ms)); in GetUTCField()
5507 int days = DateCache::DaysFromTime(time_ms); in GetUTCField()
5520 int time_in_day_ms = DateCache::TimeInDay(time_ms, days); in GetUTCField()
/third_party/exfatprogs/lib/
Dexfat_dir.c557 __le16 *time, __u8 *time_ms) in unix_time_to_exfat_time() argument
569 if (time_ms) in unix_time_to_exfat_time()
570 *time_ms = (tm.tm_sec & 1) * 100; in unix_time_to_exfat_time()
/third_party/lwip/src/apps/lwiperf/
Dlwiperf.c294 u32_t time_ms = time * 10; in lwiperf_tcp_client_send_more() local
295 if (diff_ms >= time_ms) { in lwiperf_tcp_client_send_more()
/third_party/ffmpeg/libavformat/
Ddashenc.c779 int64_t time_ms = time_us / 1000; in format_date() local
780 const time_t time_s = time_ms / 1000; in format_date()
781 int millisec = time_ms - (time_s * 1000); in format_date()

12