Robot moving time monitoring

Is there an easy way to record for how much time robot has been actually moving over its life cycle, or some other defined time period? I have a customer who wants to use it as a metric of productivity for a particular process.

It is possible to record the variable of robot programs by using daemon service(XML-RPC).

For example, you can implement the feature to record to csv files into xmlrpc.