/openjdk9/nashorn/samples/ |
H A D | jsadapter-fallthrough.js | 51 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 D | importstatic.js | 50 print(now());
|
H A D | secondssince.js | 42 until(Instant.now(), ChronoUnit.SECONDS);
|
/openjdk9/nashorn/test/examples/ |
H A D | innerbench.js | 46 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 D | json-parser-micro.js | 33 var start = Date.now(); 37 print("1000 iterations in", Date.now() - start, "millis");
|
H A D | array-micro.js | 35 var start = Date.now(); 39 print((Date.now() - start) + "\t" + name);
|
H A D | getter-setter-micro.js | 56 var start = Date.now(); 64 print("done in", Date.now() - start, "millis");
|
/openjdk9/hotspot/src/share/vm/gc/g1/ |
H A D | g1StringDedupStat.hpp | 117 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 D | Bug4395196.java | 44 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 D | Bug4762201.java | 43 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 D | Bug4685470.java | 48 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 D | DaylightTimeTest.java | 44 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 D | CountedTimerTaskUtils.java | 57 long now = System.currentTimeMillis(); 59 long expired = now - lastRun;
|
/openjdk9/jdk/test/sun/security/krb5/ |
H A D | MicroTime.java | 36 KerberosTime t1 = KerberosTime.now(); 40 KerberosTime t2 = KerberosTime.now();
|
/openjdk9/hotspot/src/share/vm/gc/shared/ |
H A D | gcTimer.hpp | 140 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 D | Victim.java | 29 long now = System.currentTimeMillis(); 31 while ((System.currentTimeMillis() - now) < Test8003720.DURATION) {
|
/openjdk9/jdk/src/java.base/unix/native/libnio/ch/ |
H A D | PollArrayWrapper.c | 44 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 D | ReplayCachePrecise.java | 54 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 D | ReplayCacheExpunge.java | 53 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 D | CreationTime.java | 64 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 D | ClosedChannelList.java | 64 long now = System.currentTimeMillis(); 67 if (forceClose || elm.expiry <= now) {
|
/openjdk9/jdk/test/sun/net/www/httptest/ |
H A D | ClosedChannelList.java | 64 long now = System.currentTimeMillis(); 67 if (forceClose || elm.expiry <= now) {
|
/openjdk9/jdk/src/java.security.jgss/share/classes/sun/security/krb5/internal/ |
H A D | PAEncTSEnc.java | 68 KerberosTime now = KerberosTime.now(); 69 pATimeStamp = now; 70 pAUSec = now.getMicroSeconds();
|
/openjdk9/jdk/src/java.rmi/share/classes/java/rmi/server/ |
H A D | UID.java | 120 long now = System.currentTimeMillis(); 121 if (now == lastTime) { 131 lastTime = (now < lastTime) ? lastTime+1 : now;
|
/openjdk9/jdk/test/tools/jar/ |
H A D | JarEntryTime.java | 100 * 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...] |