Merge branch 'quiver'
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..63fe85d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.packages
+.pub/
+.dart_tool/
+build/
+pubspec.lock
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..9124e03
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,33 @@
+language: dart
+
+# By default, builds are run in containers.
+# https://docs.travis-ci.com/user/getting-started/#Selecting-infrastructure-(optional)
+# Set `sudo: true` to disable containers if you need to use sudo in your scripts.
+# sudo: true
+
+dart:
+- dev
+- stable
+
+# See https://docs.travis-ci.com/user/languages/dart/ for details.
+dart_task:
+- test: --platform vm
+# Uncomment this line to run tests on the browser.
+# - test: --platform firefox
+
+# Only run one instance of the formatter and the analyzer, rather than running
+# them against each Dart version.
+matrix:
+  include:
+  - dart: stable
+    dart_task: dartfmt
+  - dart: dev
+    dart_task: dartanalyzer
+
+# Only building master means that we don't run two builds for each pull request.
+branches:
+  only: [master]
+
+cache:
+  directories:
+  - $HOME/.pub-cache
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..e8063a8
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,6 @@
+# Below is a list of people and organizations that have contributed
+# to the project. Names should be added to the list like so:
+#
+#   Name/Organization <email address>
+
+Google Inc.
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..5b26ad3
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,3 @@
+## 1.0.0
+
+* Initial version.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..615b92f
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,53 @@
+Want to contribute? Great! First, read this page (including the small print at
+the end).
+
+### Before you contribute
+
+Before we can use your code, you must sign the
+[Google Individual Contributor License Agreement][CLA] (CLA), which you can do
+online. The CLA is necessary mainly because you own the copyright to your
+changes, even after your contribution becomes part of our codebase, so we need
+your permission to use and distribute your code. We also need to be sure of
+various other things—for instance that you'll tell us if you know that your code
+infringes on other people's patents. You don't have to sign the CLA until after
+you've submitted your code for review and a member has approved it, but you must
+do it before we can put your code into our codebase.
+
+Before you start working on a larger contribution, you should get in touch with
+us first through the issue tracker with your idea so that we can help out and
+possibly guide you. Coordinating up front makes it much easier to avoid
+frustration later on.
+
+[CLA]: https://cla.developers.google.com/about/google-individual
+
+### Code reviews
+
+All submissions, including submissions by project members, require review. We
+recommend [forking the repository][fork], making changes in your fork, and
+[sending us a pull request][pr] so we can review the changes and merge them into
+this repository.
+
+[fork]: https://help.github.com/articles/about-forks/
+[pr]: https://help.github.com/articles/creating-a-pull-request/
+
+Functional changes will require tests to be added or changed. The tests live in
+the `test/` directory, and are run with `pub run test`. If you need to create
+new tests, use the existing tests as a guideline for what they should look like.
+
+Before you send your pull request, make sure all the tests pass!
+
+### File headers
+
+All files in the project must start with the following header.
+
+    // Copyright (c) 2017, the Dart project authors.  Please see the AUTHORS file
+    // for details. All rights reserved. Use of this source code is governed by a
+    // BSD-style license that can be found in the LICENSE file.
+
+### The small print
+
+Contributions made by corporations are covered by a different agreement than the
+one above, the
+[Software Grant and Corporate Contributor License Agreement][CCLA].
+
+[CCLA]: https://developers.google.com/open-source/cla/corporate
diff --git a/README.md b/README.md
index 4125d69..905f3b3 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,48 @@
-This is a dummy commit generated when extracting `clock` from Quiver.
+This package provides a [`Clock`][] class which encapsulates the notion of the
+"current time" and provides easy access to points relative to the current time.
+Different `Clock`s can have a different notion of the current time, and the
+default top-level [`clock`][]'s notion can be swapped out to reliably test
+timing-dependent code.
 
-See https://github.com/google/quiver-dart for the original history of this code.
+[`Clock`]: https://www.dartdocs.org/documentation/clock/latest/clock/Clock-class.html
+[`clock`]: https://www.dartdocs.org/documentation/clock/latest/clock/clock.html
+
+For example, you can use `clock` in your libraries like this:
+
+```dart
+// run_with_timing.dart
+import 'package:clock/clock.dart';
+
+/// Runs [callback] and prints how long it took.
+T runWithTiming<T>(T callback()) {
+  var stopwatch = clock.getStopwatch()..start();
+  var result = callback();
+  print("It took ${stopwatch.elapsed}!");
+  return result;
+}
+```
+
+...and then test your code using the [`fake_async`][] package, which
+automatically overrides the current clock:
+
+[`fake_async`]: https://pub.dartlang.org/packages/fake_async
+
+```dart
+// run_with_timing_test.dart
+import 'run_with_timing.dart';
+
+import 'package:fake_async/fake_async.dart';
+import 'package:test/test.dart';
+
+void main() {
+  test("runWithTiming() prints the elapsed time", () {
+    new FakeAsync().run((async) {
+      expect(() {
+        runWithTiming(() {
+          async.elapse(new Duration(seconds: 10));
+        });
+      }, prints("It took 0:00:10.000000!"));
+    });
+  });
+}
+```
diff --git a/analysis_options.yaml b/analysis_options.yaml
new file mode 100644
index 0000000..a10d4c5
--- /dev/null
+++ b/analysis_options.yaml
@@ -0,0 +1,2 @@
+analyzer:
+  strong-mode: true
diff --git a/pubspec.yaml b/pubspec.yaml
new file mode 100644
index 0000000..52d25d2
--- /dev/null
+++ b/pubspec.yaml
@@ -0,0 +1,8 @@
+name: clock
+version: 1.0.0-dev
+description: A fakeable wrapper for dart:core clock APIs
+author: Dart Team <misc@dartlang.org>
+homepage: https://github.com/dart-lang/clock
+
+environment:
+  sdk: '>=1.24.0 <2.0.0'