Scala学習ノート---2つの時間の差を求めます


package zetyun.kafka

import java.util.Calendar
/**
  * Created by ryan on 17-7-20.
  */
object ProducerJson {
  def main(Args: Array[String]): Unit ={
    val startTime = Calendar.getInstance.getTimeInMillis.toInt
    val endTime = Calendar.getInstance.getTimeInMillis.toInt
    print (endTime - startTime)
  }
}