All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.progressindicator.1.0.0.source-code.Percentage.kt Maven / Gradle / Ivy

The newest version!
/* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, you can obtain one at http://mozilla.org/MPL/2.0/.
 * ------------------------------------------------------------------*/

import com.kotlinnlp.progressindicator.ProgressIndicatorPercentage

/**
 *
 */
fun main(args: Array) {

  val loopSize = 1000
  val progressIndicator = ProgressIndicatorPercentage(loopSize)

  (0 until loopSize).forEach({
    progressIndicator.tick()
    Thread.sleep(10)
  })
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy