--- loncom/homework/structuretags.pm 2012/03/25 14:35:58 1.501 +++ loncom/homework/structuretags.pm 2012/04/04 10:48:30 1.502 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.501 2012/03/25 14:35:58 foxr Exp $ +# $Id: structuretags.pm,v 1.502 2012/04/04 10:48:30 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1541,6 +1541,14 @@ sub end_problem { &reset_problem_globals('problem'); + # + # This shouild be just above the return so that the + # time put in the javascript is as late as possible in the + # computation: + # + if ($target eq 'web') { + $result .= &Apache::lonhtmlcommon::set_compute_end_time(); + } return $result; }