Home
last modified time | relevance | path

Searched refs:millis (Results 1 – 25 of 182) sorted by relevance

12345678

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java225 int millis = fields[5]; in timeToString() local
226 int hour = millis / MILLIS_PER_HOUR; in timeToString()
227 millis = millis % MILLIS_PER_HOUR; in timeToString()
228 int min = millis / MILLIS_PER_MINUTE; in timeToString()
229 millis = millis % MILLIS_PER_MINUTE; in timeToString()
230 int sec = millis / MILLIS_PER_SECOND; in timeToString()
231 millis = millis % MILLIS_PER_SECOND; in timeToString()
234 fields[0], fields[1] + 1, fields[2], hour, min, sec, millis); in timeToString()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DGrego.java227 int millis = fields[5]; in timeToString() local
228 int hour = millis / MILLIS_PER_HOUR; in timeToString()
229 millis = millis % MILLIS_PER_HOUR; in timeToString()
230 int min = millis / MILLIS_PER_MINUTE; in timeToString()
231 millis = millis % MILLIS_PER_MINUTE; in timeToString()
232 int sec = millis / MILLIS_PER_SECOND; in timeToString()
233 millis = millis % MILLIS_PER_SECOND; in timeToString()
236 fields[0], fields[1] + 1, fields[2], hour, min, sec, millis); in timeToString()
/external/slf4j/slf4j-ext/src/test/java/org/slf4j/profiler/
DProfilerTest.java111 private void doX(int millis) { in doX() argument
112 delay(millis); in doX()
115 private void doY(int millis) { in doY() argument
116 delay(millis); in doY()
119 private void doZ(int millis) { in doZ() argument
120 delay(millis); in doZ()
132 void delay(int millis) { in delay() argument
134 Thread.sleep(millis); in delay()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSystemClock.java33 protected static void sleep(long millis) { in sleep() argument
38 nanoTime = millis * MILLIS_PER_NANO; in sleep()
39 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceBy(millis); in sleep()
43 protected static boolean setCurrentTimeMillis(long millis) { in setCurrentTimeMillis() argument
48 if (now() > millis) { in setCurrentTimeMillis()
51 nanoTime = millis * MILLIS_PER_NANO; in setCurrentTimeMillis()
52 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceTo(millis); in setCurrentTimeMillis()
DShadowTime.java73 long millis = time.toMillis(true); in isEpoch() local
74 return getJulianDay(millis, 0) == Time.EPOCH_JULIAN_DAY; in isEpoch()
78 protected static int getJulianDay(long millis, long gmtoff) { in getJulianDay() argument
80 long julianDay = (millis + offsetMillis) / DAY_IN_MILLIS; in getJulianDay()
90 long millis = (julianDay - Time.EPOCH_JULIAN_DAY) * DAY_IN_MILLIS; in setJulianDay() local
91 set(millis); in setJulianDay()
95 int approximateDay = getJulianDay(millis, time.gmtoff); in setJulianDay()
103 millis = time.normalize(true); in setJulianDay()
104 return millis; in setJulianDay()
108 protected void set(long millis) { in set() argument
[all …]
DShadowDropBoxManager.java46 protected DropBoxManager.Entry getNextEntry(String tag, long millis) { in getNextEntry() argument
47 for (DropBoxManager.Entry entry : entries.tailMap(millis).values()) { in getNextEntry()
48 if ((tag != null && !entry.getTag().equals(tag)) || entry.getTimeMillis() <= millis) { in getNextEntry()
/external/libusb/libusb/os/
Dthreads_windows.c27 DWORD millis; in usbi_cond_timedwait() local
29 millis = (DWORD)(tv->tv_sec * 1000L) + (tv->tv_usec / 1000L); in usbi_cond_timedwait()
32 millis++; in usbi_cond_timedwait()
34 if (SleepConditionVariableCS(cond, mutex, millis)) in usbi_cond_timedwait()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
DICUDurationTest.java52 ICUTestDuration(long millis) { in ICUTestDuration() argument
54 if (millis > 0) { in ICUTestDuration()
56 } else if (millis == 0) { in ICUTestDuration()
61 millis = -millis; in ICUTestDuration()
63 long d = millis / 86400000L; in ICUTestDuration()
64 millis %= 86400000L; in ICUTestDuration()
68 long h = millis / 3600000L; in ICUTestDuration()
69 millis %= 3600000L; in ICUTestDuration()
73 long m = millis / 60000L; in ICUTestDuration()
74 millis %= 60000L; in ICUTestDuration()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DICUDurationTest.java49 ICUTestDuration(long millis) { in ICUTestDuration() argument
51 if (millis > 0) { in ICUTestDuration()
53 } else if (millis == 0) { in ICUTestDuration()
58 millis = -millis; in ICUTestDuration()
60 long d = millis / 86400000L; in ICUTestDuration()
61 millis %= 86400000L; in ICUTestDuration()
65 long h = millis / 3600000L; in ICUTestDuration()
66 millis %= 3600000L; in ICUTestDuration()
70 long m = millis / 60000L; in ICUTestDuration()
71 millis %= 60000L; in ICUTestDuration()
[all …]
/external/junit/src/main/java/org/junit/rules/
DTimeout.java66 public Timeout(int millis) { in Timeout() argument
67 this(millis, TimeUnit.MILLISECONDS); in Timeout()
101 public static Timeout millis(long millis) { in millis() method in Timeout
102 return new Timeout(millis, TimeUnit.MILLISECONDS); in millis()
/external/llvm-project/lld/Common/
DTimer.cpp40 double totalDuration = static_cast<double>(root().millis()); in print()
50 root().print(0, root().millis(), false); in print()
53 double Timer::millis() const { in millis() function in Timer
60 double p = 100.0 * millis() / totalDuration; in print()
65 stream << format("%-30s%7d ms (%5.1f%%)", s.c_str(), (int)millis(), p); in print()
/external/rust/crates/chrono/src/offset/
Dmod.rs354 fn timestamp_millis(&self, millis: i64) -> DateTime<Self> { in timestamp_millis()
355 self.timestamp_millis_opt(millis).unwrap() in timestamp_millis()
375 fn timestamp_millis_opt(&self, millis: i64) -> LocalResult<DateTime<Self>> { in timestamp_millis_opt()
376 let (mut secs, mut millis) = (millis / 1000, millis % 1000); in timestamp_millis_opt()
377 if millis < 0 { in timestamp_millis_opt()
379 millis += 1000; in timestamp_millis_opt()
381 self.timestamp_opt(secs, millis as u32 * 1_000_000) in timestamp_millis_opt()
497 for (millis, expected) in &[ in test_negative_millis()
502 match Utc.timestamp_millis_opt(*millis) { in test_negative_millis()
/external/mockito/src/main/java/org/mockito/verification/
DTimeout.java28 public Timeout(long millis, VerificationMode delegate) { in Timeout() argument
29 this(10, millis, delegate); in Timeout()
35 Timeout(long pollingPeriodMillis, long millis, VerificationMode delegate) { in Timeout() argument
36 this(new VerificationOverTimeImpl(pollingPeriodMillis, millis, delegate, true)); in Timeout()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DOkHttpClient.java189 long millis = unit.toMillis(timeout); in setConnectTimeout() local
190 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setConnectTimeout()
191 if (millis == 0 && timeout > 0) throw new IllegalArgumentException("Timeout too small."); in setConnectTimeout()
192 connectTimeout = (int) millis; in setConnectTimeout()
209 long millis = unit.toMillis(timeout); in setReadTimeout() local
210 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setReadTimeout()
211 if (millis == 0 && timeout > 0) throw new IllegalArgumentException("Timeout too small."); in setReadTimeout()
212 readTimeout = (int) millis; in setReadTimeout()
227 long millis = unit.toMillis(timeout); in setWriteTimeout() local
228 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setWriteTimeout()
[all …]
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DOkHttpClient.java195 long millis = unit.toMillis(timeout); in setConnectTimeout() local
196 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setConnectTimeout()
197 if (millis == 0 && timeout > 0) throw new IllegalArgumentException("Timeout too small."); in setConnectTimeout()
198 connectTimeout = (int) millis; in setConnectTimeout()
215 long millis = unit.toMillis(timeout); in setReadTimeout() local
216 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setReadTimeout()
217 if (millis == 0 && timeout > 0) throw new IllegalArgumentException("Timeout too small."); in setReadTimeout()
218 readTimeout = (int) millis; in setReadTimeout()
233 long millis = unit.toMillis(timeout); in setWriteTimeout() local
234 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setWriteTimeout()
[all …]
/external/icu/icu4c/source/i18n/
Dsimpletz.cpp397 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const in getOffset() argument
411 …return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status… in getOffset()
416 uint8_t dayOfWeek, int32_t millis, in getOffset() argument
435 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset()
443 uint8_t dayOfWeek, int32_t millis, in getOffset() argument
456 || millis < 0 in getOffset()
457 || millis >= U_MILLIS_PER_DAY in getOffset()
479 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset()
493 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset()
521 int32_t millis = (int32_t) (date - day * U_MILLIS_PER_DAY); in getOffsetFromLocal() local
[all …]
/external/conscrypt/libcore-stub/src/main/java/android/system/
DStructTimeval.java37 public static StructTimeval fromMillis(long millis) { in fromMillis() argument
38 long tv_sec = millis / 1000; in fromMillis()
39 long tv_usec = (millis - (tv_sec * 1000)) * 1000; in fromMillis()
/external/grpc-grpc/src/core/lib/iomgr/
Dexec_ctx.cc76 gpr_timespec grpc_millis_to_timespec(grpc_millis millis, in grpc_millis_to_timespec() argument
80 if (millis == GRPC_MILLIS_INF_FUTURE) { in grpc_millis_to_timespec()
83 if (millis == GRPC_MILLIS_INF_PAST) { in grpc_millis_to_timespec()
88 return gpr_time_from_millis(millis, GPR_TIMESPAN); in grpc_millis_to_timespec()
91 gpr_time_from_millis(millis, GPR_TIMESPAN)); in grpc_millis_to_timespec()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DSimpleTimeZone.java647 int dayOfWeek, int millis) in getOffset() argument
660 return getOffset(era, year, month, day, dayOfWeek, millis, Grego.monthLength(year, month)); in getOffset()
669 int dayOfWeek, int millis, in getOffset() argument
682 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset()
687 int dayOfWeek, int millis, in getOffset() argument
701 || millis < 0 in getOffset()
702 || millis >= Grego.MILLIS_PER_DAY in getOffset()
756 day, dayOfWeek, millis, in getOffset()
773 day, dayOfWeek, millis, in getOffset()
851 int dayOfWeek, int millis, int millisDelta, in compareToRule() argument
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DSimpleTimeZone.java626 int dayOfWeek, int millis) in getOffset() argument
639 return getOffset(era, year, month, day, dayOfWeek, millis, Grego.monthLength(year, month)); in getOffset()
648 int dayOfWeek, int millis, in getOffset() argument
661 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset()
666 int dayOfWeek, int millis, in getOffset() argument
680 || millis < 0 in getOffset()
681 || millis >= Grego.MILLIS_PER_DAY in getOffset()
735 day, dayOfWeek, millis, in getOffset()
752 day, dayOfWeek, millis, in getOffset()
830 int dayOfWeek, int millis, int millisDelta, in compareToRule() argument
[all …]
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestAll.java121 public final int millis; field in TestAll.DateDisplayBean
134 millis = (int) (m - (seconds * 1000)); in DateDisplayBean()
152 if (millis > 0) { in toString()
153 sb.append(millis); in toString()
154 sb.append(millis > 1 ? " milliseconds" : " millisecond"); in toString()
/external/okio/okio/src/jvmTest/kotlin/okio/
DThrottlerTakeTest.kt134 private fun assertElapsed(millis: Long) { in assertElapsed()
135 elapsedNanos += TimeUnit.MILLISECONDS.toNanos(millis) in assertElapsed()
139 private fun sleep(millis: Long) { in sleep()
140 nowNanos += TimeUnit.MILLISECONDS.toNanos(millis) in sleep()
/external/icu/icu4c/source/samples/date/
Ddate.c53 static UDate getWhen(const char *millis, const char *seconds, const char *format, const char *local…
81 char *millis = NULL; in main() local
129 millis = argv[optInd]; in main()
173 when = getWhen(millis, seconds, format, locale, style, parse, tz, &status); in main()
305 static UDate getWhen(const char *millis, const char *seconds, const char *format, const char *local… in getWhen() argument
313 if(millis != NULL) { in getWhen()
314 sscanf(millis, "%lf", &when); in getWhen()
/external/universal-tween-engine/java/applets/src/aurelienribon/utils/swing/
DDrawingCanvas.java39 final long millis = System.currentTimeMillis();
40 final long delta = millis - lastMillis;
41 lastMillis = millis;
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/i18n/timezone/
DZoneInfoData.java494 int findOffsetIndexForTimeInMilliseconds(long millis) { in findOffsetIndexForTimeInMilliseconds() argument
507 return findOffsetIndexForTimeInSeconds(roundDownMillisToSeconds(millis)); in findOffsetIndexForTimeInMilliseconds()
524 static long roundDownMillisToSeconds(long millis) { in roundDownMillisToSeconds() argument
525 if (millis < 0) { in roundDownMillisToSeconds()
531 return (millis - 999) / 1000; in roundDownMillisToSeconds()
533 return millis / 1000; in roundDownMillisToSeconds()
551 static long roundUpMillisToSeconds(long millis) { in roundUpMillisToSeconds() argument
552 if (millis > 0) { in roundUpMillisToSeconds()
558 return (millis + 999) / 1000; in roundUpMillisToSeconds()
560 return millis / 1000; in roundUpMillisToSeconds()

12345678