def update(self, request, *args, **kwargs):

        pk = kwargs.get('pk', None)
        if pk:
            instance = Comment.objects.get(pk=pk)
            if request.user.id != instance.created_by.id:
                return HttpResponseForbidden()
        return super(CommentViewSet, self).update(request, *args, **kwargs)
Optionally provide measure of execution time.
dataset/ETHPy150Open upconsulting/IsisCB/isiscb/isisdata/views.py/CommentViewSet.update--crossover with--dataset/ETHPy150Open openstack/rally/rally/task/atomic.py/optional_action_timer