001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005package edu.wpi.first.math;
006
007public interface MathShared {
008  /**
009   * Report an error.
010   *
011   * @param error the error to set
012   * @param stackTrace array of stacktrace elements
013   */
014  void reportError(String error, StackTraceElement[] stackTrace);
015
016  /**
017   * Report usage.
018   *
019   * @param id the usage id
020   * @param count the usage count
021   */
022  void reportUsage(MathUsageId id, int count);
023
024  /**
025   * Get the current time.
026   *
027   * @return Time in seconds
028   */
029  double getTimestamp();
030}