getCurrentMillseconds method

int getCurrentMillseconds()

获取当前时间的微秒

 print('current time in millseconds: ${getCurrentMillseconds()}');

Implementation

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