001/*
002 * Copyright (C) Cross The Road Electronics.  All rights reserved.
003 * License information can be found in CTRE_LICENSE.txt
004 * For support and suggestions contact support@ctr-electronics.com or file
005 * an issue tracker at https://github.com/CrossTheRoadElec/Phoenix-Releases
006 */
007package com.ctre.phoenix6;
008
009import com.ctre.phoenix6.jni.CtreJniWrapper;
010
011public class Utils extends CtreJniWrapper {
012    /**
013     * Get the current timestamp in seconds.
014     * <p>
015     * This will return the current time in seconds, this is
016     * the same time that is used in {@link Timestamp}
017     *
018     * @return Current time in seconds.
019     */
020    public static native double getCurrentTimeSeconds();
021    /**
022     * Get whether the program is running in simulation.
023     *
024     * @return {@code true} if in simulation
025     */
026    public static native boolean isSimulation();
027}