aspose file tools
The moose likes Swing / AWT / SWT and the fly likes getWhen() of ActionEvent Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "getWhen() of ActionEvent" Watch "getWhen() of ActionEvent" New topic
Author

getWhen() of ActionEvent

P Jain
Ranch Hand

Joined: Jul 31, 2004
Posts: 52
What is the unit of time which we get by getWhen() method of ActionEvent.


Regards<br />P Jain
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8263

Since it's a long it is probably the system time in milliseconds:

public static long currentTimeMillis()

Returns the current time in milliseconds. Note that while the unit of time of the return value is a millisecond, the granularity of the value depends on the underlying operating system and may be larger. For example, many operating systems measure time in units of tens of milliseconds.

See the description of the class Date for a discussion of slight discrepancies that may arise between "computer time" and coordinated universal time (UTC).

Returns:
the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.

java.lang.System


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: getWhen() of ActionEvent
 
Similar Threads
awt events
Events
"real" keyreleased events?
Marcus green exam 3
Button Click Event