a facsimile of the Dart code sample : clock