Update Demo1.scala

Print the current time to millisecond precision, updating every 100 milliseconds.