System
Methods
// Example: Get current time in milliseconds
var currentTimeMillis = System.currentTimeMillis();
return "Current time in milliseconds: " + currentTimeMillis;// Example 1: Get current time in nanoseconds
var nanoseconds = System.nanoTime();
return "Current time in nanoseconds: " + nanoseconds;// Example: Get the system-dependent line separator
var lineSeparator = System.lineSeparator();