I am interested to instantiate Duration
class from Kotlin.time
package provided by kotlin.
my code so far..
...
import kotlin.time
class MyGLRenderer : GLSurfaceView.Renderer {
override fun onSurfaceCreated(unused: GL10, config: EGLConfig) {
var tp0:Duration= Duration(10L)
//cannot acces `<init>:` it is internal in `Duration` }
override fun onDrawFrame(unused: GL10) {}
override fun onSurfaceChanged(unused: GL10, width: Int, height: Int) {}
}
So how can i perform this intention ?
I also tried:
var tp0:Duration= Duration(Duration.)
//to find a getter or setter that can be used to pass the required `long` data type to
// the constructor but no function will return long data type