expose timestamps
diff --git a/changelog.md b/changelog.md
index 356d69e..e85da6b 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,6 +1,10 @@
# webkit_inspection_protocol.dart
## 0.3.0
+- Expose `ConsoleAPIEvent.timestamp`
+- Expose `LogEntry.timestamp`
+
+## 0.3.0
- Expose the `runtime` domain.
- Expose the `log` domain.
- Deprecated the `console` 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
diff --git a/webkit_inspection_protocol.dart.iml b/webkit_inspection_protocol.dart.iml
new file mode 100644
index 0000000..5d2c24f
--- /dev/null
+++ b/webkit_inspection_protocol.dart.iml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
+ <exclude-output />
+ <content url="file://$MODULE_DIR$">
+ <excludeFolder url="file://$MODULE_DIR$/.pub" />
+ <excludeFolder url="file://$MODULE_DIR$/bin/packages" />
+ <excludeFolder url="file://$MODULE_DIR$/build" />
+ <excludeFolder url="file://$MODULE_DIR$/packages" />
+ <excludeFolder url="file://$MODULE_DIR$/test/data/packages" />
+ <excludeFolder url="file://$MODULE_DIR$/test/packages" />
+ <excludeFolder url="file://$MODULE_DIR$/tool/packages" />
+ </content>
+ <orderEntry type="inheritedJdk" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ <orderEntry type="library" name="Dart SDK" level="project" />
+ <orderEntry type="library" name="Dart Packages" level="project" />
+ </component>
+</module>
\ No newline at end of file