Scala学习笔记 --- 求两个时间的差

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)
  }
}

你可能感兴趣的:(Scala,Functional,Programming)