src/Pure/PIDE/protocol.scala
changeset 51818 517f232e867d
parent 51533 3f6280aedbcc
child 51987 7d8e0e3c553b
--- a/src/Pure/PIDE/protocol.scala	Mon Apr 29 14:07:03 2013 +0200
+++ b/src/Pure/PIDE/protocol.scala	Mon Apr 29 15:47:42 2013 +0200
@@ -84,6 +84,22 @@
     (Status.init /: markups)(command_status(_, _))
 
 
+  /* command timing */
+
+  object Command_Timing
+  {
+    def unapply(props: Properties.T): Option[(Document.ID, isabelle.Timing)] =
+      props match {
+        case (Markup.FUNCTION, Markup.COMMAND_TIMING) :: args =>
+          (args, args) match {
+            case (Position.Id(id), Markup.Timing_Properties(timing)) => Some((id, timing))
+            case _ => None
+          }
+        case _ => None
+      }
+  }
+
+
   /* node status */
 
   sealed case class Node_Status(