Merge pull request #27 from google/timestamps

Timestamps
diff --git a/.gitignore b/.gitignore
index c5982f4..07781a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,9 +7,11 @@
 .svn

 packages

 pubspec.lock

-.idea

 .pub/

 docs/

 build/

 .settings/

 .packages

+

+.idea/

+webkit_inspection_protocol.dart.iml

diff --git a/changelog.md b/changelog.md
index 356d69e..90a7979 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,9 @@
 # webkit_inspection_protocol.dart
 
+## 0.3.1
+- Expose `ConsoleAPIEvent.timestamp`
+- Expose `LogEntry.timestamp`
+
 ## 0.3.0
 - Expose the `runtime` domain.
 - Expose the `log` domain.
diff --git a/lib/src/log.dart b/lib/src/log.dart
index 17bc49e..595369d 100644
--- a/lib/src/log.dart
+++ b/lib/src/log.dart
@@ -35,5 +35,8 @@
   @optional
   String get url => _entry['url'];
 
+  /// Timestamp when this entry was added.
+  num get timestamp => _entry['timestamp'];
+
   String toString() => text;
 }
diff --git a/lib/src/runtime.dart b/lib/src/runtime.dart
index c14f7c5..076ee47 100644
--- a/lib/src/runtime.dart
+++ b/lib/src/runtime.dart
@@ -29,6 +29,9 @@
   /// assert, profile, profileEnd.
   String get type => params['type'];
 
+  // Call timestamp.
+  num get timestamp => params['timestamp'];
+
   /// Call arguments.
   List<RemoteObject> get args =>
       (params['args'] as List).map((m) => new RemoteObject(m)).toList();
diff --git a/pubspec.yaml b/pubspec.yaml
index 651f690..8f73aac 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
 name: webkit_inspection_protocol
-version: 0.3.0
+version: 0.3.1
 description: A client for the Webkit Inspection Protocol (WIP).
 
 homepage: https://github.com/google/webkit_inspection_protocol.dart