mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpiutil] Add GetSystemTime() (#3840)
This portably gets the time in microseconds since the Unix epoch.
This commit is contained in:
@@ -116,6 +116,18 @@ Java_edu_wpi_first_util_WPIUtilJNI_now
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_util_WPIUtilJNI
|
||||
* Method: getSystemTime
|
||||
* Signature: ()J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL
|
||||
Java_edu_wpi_first_util_WPIUtilJNI_getSystemTime
|
||||
(JNIEnv*, jclass)
|
||||
{
|
||||
return wpi::GetSystemTime();
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_util_WPIUtilJNI
|
||||
* Method: addPortForwarder
|
||||
|
||||
Reference in New Issue
Block a user