getCurrentTimeMillis function

int getCurrentTimeMillis()

Returns the current time in milliseconds since epoch.

Implementation

int getCurrentTimeMillis() {
  return DateTime.now().millisecondsSinceEpoch;
}