Exploit database

GH-17c1e7899cfff2194dc77a67b4010017

201-991-broncobotics/ftc-201-intothedeep

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2019-11358

1,181 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files12

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/pedroPathing/util/NanoTimer.java

Java · 1,296 bytes
package org.firstinspires.ftc.teamcode.pedroPathing.util;

/**
 * This is the NanoTimer class. It is an elapsed time clock with nanosecond precision, or at least
 * as precise as the System.nanoTime() is.
 *
 * @author Anyi Lin - 10158 Scott's Bots
 * @author Aaron Yang - 10158 Scott's Bots
 * @author Harrison Womack - 10158 Scott's Bots
 * @version 1.0, 3/5/2024
 */
public class NanoTimer {
    private long startTime;

    /**
     * This creates a new NanoTimer with the start time set to its creation time.
     */
    public NanoTimer() {
        resetTimer();
    }

    /**
     * This resets the NanoTimer's start time to the current time using System.nanoTime().
     */
    public void resetTimer() {
        startTime = System.nanoTime();
    }

    /**
     * This returns the elapsed time in nanoseconds since the start time of the NanoTimer.
     *
     * @return this returns the elapsed time in nanoseconds.
     */
    public long getElapsedTime() {
        return System.nanoTime() - startTime;
    }

    /**
     * This returns the elapsed time in seconds since the start time of the NanoTimer.
     *
     * @return this returns the elapsed time in seconds.
     */
    public double getElapsedTimeSeconds() {
        return (getElapsedTime() / Math.pow(10.0,9));
    }
}