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.phoenixpro;
008
009public class Utils {
010    /**
011     * Get the current timestamp in seconds.
012     * <p>
013     * This will return the current time in seconds, this is
014     * the same time that is used in {@link Timestamp}
015     *
016     * @return Current time in seconds.
017     */
018    public static native double getCurrentTimeSeconds();
019    /**
020     * Get whether the program is running in simulation.
021     *
022     * @return {@code true} if in simulation
023     */
024    public static native boolean isSimulation();
025}