src/java.desktop/unix/native/libawt_xawt/awt/awt_InputMethod.c
branchihse-warnings-cflags-branch
changeset 56230 489867818774
parent 47216 71c04702a3d5
equal deleted inserted replaced
56229:0015bf3a82e0 56230:489867818774
   188 /*
   188 /*
   189  * This function is stolen from /src/solaris/hpi/src/system_md.c
   189  * This function is stolen from /src/solaris/hpi/src/system_md.c
   190  * It is used in setting the time in Java-level InputEvents
   190  * It is used in setting the time in Java-level InputEvents
   191  */
   191  */
   192 jlong
   192 jlong
   193 awt_util_nowMillisUTC()
   193 awt_util_nowMillisUTC(void)
   194 {
   194 {
   195     struct timeval t;
   195     struct timeval t;
   196     gettimeofday(&t, NULL);
   196     gettimeofday(&t, NULL);
   197     return ((jlong)t.tv_sec) * 1000 + (jlong)(t.tv_usec/1000);
   197     return ((jlong)t.tv_sec) * 1000 + (jlong)(t.tv_usec/1000);
   198 }
   198 }