Skip to main content
added 54 characters in body
Source Link
TNT
  • 2.5k
  • 17
  • 23

Java, 6363 62 bytes

t->{for(long a=System.nanoTime();while(System;System.nanoTime()-a<t*1E9a<t*1E9;);}

Nothing surprising - just grabs the number of nanoseconds since 1/1/1970 multiple times and checks if a second has passed.

Saved 1 byte thanks to Ypnypn and aditsu.

Java, 63 bytes

t->{long a=System.nanoTime();while(System.nanoTime()-a<t*1E9);}

Nothing surprising - just grabs the number of nanoseconds since 1/1/1970 multiple times and checks if a second has passed.

Java, 63 62 bytes

t->{for(long a=System.nanoTime();System.nanoTime()-a<t*1E9;);}

Nothing surprising - just grabs the number of nanoseconds since 1/1/1970 multiple times and checks if a second has passed.

Saved 1 byte thanks to Ypnypn and aditsu.

changed i to t
Source Link
TNT
  • 2.5k
  • 17
  • 23

Java, 63 bytes

it->{long a=System.nanoTime();while(System.nanoTime()-a<i*1E9a<t*1E9);}

Nothing surprising - just grabs the number of nanoseconds since 1/1/1970 multiple times and checks if a second has passed.

Java, 63 bytes

i->{long a=System.nanoTime();while(System.nanoTime()-a<i*1E9);}

Nothing surprising - just grabs the number of nanoseconds since 1/1/1970 multiple times and checks if a second has passed.

Java, 63 bytes

t->{long a=System.nanoTime();while(System.nanoTime()-a<t*1E9);}

Nothing surprising - just grabs the number of nanoseconds since 1/1/1970 multiple times and checks if a second has passed.

Source Link
TNT
  • 2.5k
  • 17
  • 23

Java, 63 bytes

i->{long a=System.nanoTime();while(System.nanoTime()-a<i*1E9);}

Nothing surprising - just grabs the number of nanoseconds since 1/1/1970 multiple times and checks if a second has passed.