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
009/**
010 * @deprecated Classes in the phoenixpro package will be removed in 2024.
011 *             Users should instead use classes from the phoenix6 package.
012 */
013@Deprecated(forRemoval = true)
014public class Utils {
015    /**
016     * Get the current timestamp in seconds.
017     * <p>
018     * This will return the current time in seconds, this is
019     * the same time that is used in {@link Timestamp}
020     *
021     * @return Current time in seconds.
022     */
023    public static double getCurrentTimeSeconds() {
024        return com.ctre.phoenix6.Utils.getCurrentTimeSeconds();
025    }
026    /**
027     * Get whether the program is running in simulation.
028     *
029     * @return {@code true} if in simulation
030     */
031    public static boolean isSimulation() {
032        return com.ctre.phoenix6.Utils.isSimulation();
033    }
034}