9.6 Gestionarea timpului

    //Initializam variabila start cu timpul initial
    long start = System.currentTimeMillis();

   
    waitForStart();
    //Atata timp cat opModeIsActive
    while (opModeIsActive()) {
        //variabila final va prelua timpul curent
        long final = System.currentTimeMillis();
        
        long timeElapsed = final - start;
 //In aplicatia FTC Driver Station se va afisa timpul scurs
        telemetry.addData("timp scurs%d",timeElapsed);
        telemetry.update();
    }
}