3 added 40 characters in body
source | link

Java 8, 313 300300 299 bytes

import java.time.*;()->{for(int c=0,h=LocalDateTime.now().getHour(),m=LocalDateTime.now().getMinute(),i;;)if(c>30){c=0;String l="",u,d;for(i=0;i++<60;)l+="-";u=l.substring(0,m);d=l.substring(m);System.out.println((h<10?"0":"")+h+" "+u+"\n"+(h<10h<9?"0":"")+(h+1)+" "+d);}else{c++;System.out.println();}}

This only updates every 30 iterations of the while loop. The other 29 iterations just print new lines.

Updated

Saved 1313 14 bytes due to Kevin Cruijssen's help! Thanks!

Java 8, 313 300 bytes

import java.time.*;()->{for(int c=0,h=LocalDateTime.now().getHour(),m=LocalDateTime.now().getMinute(),i;;)if(c>30){c=0;String l="",u,d;for(i=0;i++<60;)l+="-";u=l.substring(0,m);d=l.substring(m);System.out.println((h<10?"0":"")+h+" "+u+"\n"+(h<10?"0":"")+(h+1)+" "+d);}else{c++;System.out.println();}}

This only updates every 30 iterations of the while loop. The other 29 iterations just print new lines.

Updated

Saved 13 bytes due to Kevin Cruijssen's help! Thanks!

Java 8, 313 300 299 bytes

import java.time.*;()->{for(int c=0,h=LocalDateTime.now().getHour(),m=LocalDateTime.now().getMinute(),i;;)if(c>30){c=0;String l="",u,d;for(i=0;i++<60;)l+="-";u=l.substring(0,m);d=l.substring(m);System.out.println((h<10?"0":"")+h+" "+u+"\n"+(h<9?"0":"")+(h+1)+" "+d);}else{c++;System.out.println();}}

This only updates every 30 iterations of the while loop. The other 29 iterations just print new lines.

Updated

Saved 13 14 bytes due to Kevin Cruijssen's help! Thanks!

2 added 78 characters in body
source | link

Java 8, 313313 300 bytes

intimport c=0;whilejava.time.*;(true)->{for(int c=0,h=LocalDateTime.now().getHour(),s=LocalDateTimem=LocalDateTime.now().getMinute();if,i;;)if(c==30c>30){c=0;String l ="";forl="",u,d;for(int i=0;i<60;i++i=0;i++<60;){l+="-";}String u=l";u=l.substring(0,sm),d=l;d=l.substring(sm);System.out.println((h<10?"0":"")+h+" "+u);System.out.println("+u+"\n"+(h+1<10h<10?"0":"")+(h+1)+" "+d);}else{c++;System.out.println();}}

This only updates every 30 iterations of the while loop. The other 29 iterations just print new lines.  

Updated

Saved 13 bytes due to Kevin Cruijssen's help! Thanks!

Java 8, 313 bytes

int c=0;while(true){int h=LocalDateTime.now().getHour(),s=LocalDateTime.now().getMinute();if(c==30){c=0;String l ="";for(int i=0;i<60;i++){l+="-";}String u=l.substring(0,s),d=l.substring(s);System.out.println((h<10?"0":"")+h+" "+u);System.out.println((h+1<10?"0":"")+(h+1)+" "+d);}else{c++;System.out.println();}}

This only updates every 30 iterations of the while loop. The other 29 iterations just print new lines.  

Java 8, 313 300 bytes

import java.time.*;()->{for(int c=0,h=LocalDateTime.now().getHour(),m=LocalDateTime.now().getMinute(),i;;)if(c>30){c=0;String l="",u,d;for(i=0;i++<60;)l+="-";u=l.substring(0,m);d=l.substring(m);System.out.println((h<10?"0":"")+h+" "+u+"\n"+(h<10?"0":"")+(h+1)+" "+d);}else{c++;System.out.println();}}

This only updates every 30 iterations of the while loop. The other 29 iterations just print new lines.

Updated

Saved 13 bytes due to Kevin Cruijssen's help! Thanks!

1
source | link

Java 8, 313 bytes

int c=0;while(true){int h=LocalDateTime.now().getHour(),s=LocalDateTime.now().getMinute();if(c==30){c=0;String l ="";for(int i=0;i<60;i++){l+="-";}String u=l.substring(0,s),d=l.substring(s);System.out.println((h<10?"0":"")+h+" "+u);System.out.println((h+1<10?"0":"")+(h+1)+" "+d);}else{c++;System.out.println();}}

This only updates every 30 iterations of the while loop. The other 29 iterations just print new lines.