Searched refs:now (Results 1 - 25 of 215) sorted by relevance

123456789

/openjdk9/nashorn/samples/
H A Djsadapter-fallthrough.js51 var now = wrapDate(Date.now())
53 print(now)
54 print(now.yesterday()) // adapted
55 print(now.lengthOfMonth()) // fall through to original method
56 print(now.atTime(23, 42)) // arguments are passed through
H A Dimportstatic.js50 print(now());
H A Dsecondssince.js42 until(Instant.now(), ChronoUnit.SECONDS);
/openjdk9/nashorn/test/examples/
H A Dinnerbench.js46 for (var i = 0, d = Date.now(); i < N; i++) {
49 print("empty :", Date.now() - d);
50 for (var i = 0, d = Date.now(); i < N; i++) {
53 print("outer1:", Date.now() - d);
54 for (var i = 0, d = Date.now(); i < N; i++) {
57 print("outer2:", Date.now() - d);
H A Djson-parser-micro.js33 var start = Date.now();
37 print("1000 iterations in", Date.now() - start, "millis");
H A Darray-micro.js35 var start = Date.now();
39 print((Date.now() - start) + "\t" + name);
H A Dgetter-setter-micro.js56 var start = Date.now();
64 print("done in", Date.now() - start, "millis");
/openjdk9/hotspot/src/share/vm/gc/g1/
H A Dg1StringDedupStat.hpp117 double now = os::elapsedTime(); local
118 _idle_elapsed = now - _start_phase;
119 _start_phase = now;
120 _start_concurrent = now;
125 double now = os::elapsedTime(); local
126 _exec_elapsed += now - _start_phase;
127 _start_phase = now;
132 double now = os::elapsedTime(); local
133 _block_elapsed += now - _start_phase;
134 _start_phase = now;
138 double now = os::elapsedTime(); local
[all...]
/openjdk9/jdk/test/sun/text/resources/Format/
H A DBug4395196.java44 Date now = new Date(108, Calendar.APRIL, 9);
50 if( !sdf.format(now).equals(df.format(now))){
52 System.out.println("error at " + sdf.format(now));
56 if( !sdf.format(now).equals(df.format(now))){
58 System.out.println("error at " + sdf.format(now));
62 if( !sdf.format(now).equals(df.format(now))){
64 System.out.println("error at " + sdf.format(now));
[all...]
H A DBug4762201.java43 Date now = new Date();
49 if( !sdf.format(now).equals(df.format(now))) result++;
52 if( !sdf.format(now).equals(df.format(now))) result++;
55 if( !sdf.format(now).equals(df.format(now))) result++;
58 if( !sdf.format(now).equals(df.format(now))) result++;
H A DBug4685470.java48 Date now = new Date();
51 return Test(s.format(now), getDayofWeek(now, Locale.SIMPLIFIED_CHINESE), "\"EEEE\" in " + Locale.SIMPLIFIED_CHINESE.toString());
56 Date now = new Date();
59 return Test(s.format(now), getDayofWeek(now, Locale.TRADITIONAL_CHINESE), "\"EEEE\" in " + Locale.TRADITIONAL_CHINESE.toString());
/openjdk9/jdk/test/java/util/TimeZone/
H A DDaylightTimeTest.java44 long now = System.currentTimeMillis();
46 boolean found = findDSTTransition(tz, now);
53 now = System.currentTimeMillis();
55 found = findDSTTransition(tz, now);
58 tz.getID(), found, now);
78 * Returns true if it's `now' in DST or there's any
79 * standard-to-daylight transition within 50 years after `now'.
81 private static boolean findDSTTransition(TimeZone tz, long now) { argument
83 cal.setTimeInMillis(now);
87 for (long t = now;
[all...]
/openjdk9/jdk/src/jdk.internal.jvmstat/share/classes/sun/jvmstat/perfdata/monitor/
H A DCountedTimerTaskUtils.java57 long now = System.currentTimeMillis();
59 long expired = now - lastRun;
/openjdk9/jdk/test/sun/security/krb5/
H A DMicroTime.java36 KerberosTime t1 = KerberosTime.now();
40 KerberosTime t2 = KerberosTime.now();
/openjdk9/hotspot/src/share/vm/gc/shared/
H A DgcTimer.hpp140 virtual void register_gc_start(const Ticks& time = Ticks::now());
141 virtual void register_gc_end(const Ticks& time = Ticks::now());
152 void register_gc_pause_start(const char* name, const Ticks& time = Ticks::now());
153 void register_gc_pause_end(const Ticks& time = Ticks::now());
158 virtual void register_gc_start(const Ticks& time = Ticks::now());
159 virtual void register_gc_end(const Ticks& time = Ticks::now());
173 void register_gc_concurrent_start(const char* name, const Ticks& time = Ticks::now());
174 void register_gc_concurrent_end(const Ticks& time = Ticks::now());
/openjdk9/hotspot/test/runtime/MirrorFrame/
H A DVictim.java29 long now = System.currentTimeMillis();
31 while ((System.currentTimeMillis() - now) < Test8003720.DURATION) {
/openjdk9/jdk/src/java.base/unix/native/libnio/ch/
H A DPollArrayWrapper.c44 jlong start, now; local
57 now = t.tv_sec * 1000 + t.tv_usec / 1000;
58 diff = now - start;
63 start = now;
/openjdk9/jdk/test/sun/security/krb5/auto/
H A DReplayCachePrecise.java54 KerberosTime now = new KerberosTime(time(0)*1000L);
58 cache.checkAndStore(now, a1);
59 cache.checkAndStore(now, a2);
63 cache.checkAndStore(now, a1);
73 cache.checkAndStore(now, a2);
H A DReplayCacheExpunge.java53 KerberosTime now = new KerberosTime(time(0)*1000L);
64 cache.checkAndStore(now, a2);
67 cache.checkAndStore(now, a1);
/openjdk9/jdk/test/java/nio/file/attribute/BasicFileAttributeView/
H A DCreationTime.java64 Instant now = Instant.now();
65 if (Math.abs(creationTime.toMillis()-now.toEpochMilli()) > 10000L) {
67 throw new RuntimeException("Expected to be close to: " + now);
92 Instant plusHour = Instant.now().plusSeconds(60L * 60L);
105 Instant minusHour = Instant.now().minusSeconds(60L * 60L);
/openjdk9/jdk/test/sun/net/www/protocol/https/
H A DClosedChannelList.java64 long now = System.currentTimeMillis();
67 if (forceClose || elm.expiry <= now) {
/openjdk9/jdk/test/sun/net/www/httptest/
H A DClosedChannelList.java64 long now = System.currentTimeMillis();
67 if (forceClose || elm.expiry <= now) {
/openjdk9/jdk/src/java.security.jgss/share/classes/sun/security/krb5/internal/
H A DPAEncTSEnc.java68 KerberosTime now = KerberosTime.now();
69 pATimeStamp = now;
70 pAUSec = now.getMicroSeconds();
/openjdk9/jdk/src/java.rmi/share/classes/java/rmi/server/
H A DUID.java120 long now = System.currentTimeMillis();
121 if (now == lastTime) {
131 lastTime = (now < lastTime) ? lastTime+1 : now;
/openjdk9/jdk/test/tools/jar/
H A DJarEntryTime.java100 * Set the lastModified dates so that outer is created now, inner
110 // Get the "now" from the "last-modified-time" of the last file we
113 final long now = fileInner.lastModified();
114 final long earlier = now - (60L * 60L * 6L * 1000L);
115 final long yesterday = now - (60L * 60L * 24L * 1000L);
117 check(dirOuter.setLastModified(now));
135 checkFileTime(dirOuter.lastModified(), now);
169 static void checkFileTime(long now, long original) { argument
174 if (Math.abs(now - original) > PRECISION) {
176 FileTime.fromMillis(now), FileTim
181 checkFileTime(long start, long now, long end) argument
[all...]

Completed in 306 milliseconds

123456789