Sesame's API does not expose this information directly to you AFAIK
With Java you can do the following to time operations:
You can then convert the duration in nanoseconds into seconds like so:
answered 01 Apr '12, 16:36
Rob Vesse ♦
You can use sesame console for this purpose:
http://localhost:8080/openrdf-sesame should be replaced with the your sesame instance url.
After execution of these commands the console will show the result of the query and execution time (including the time for network interaction) in milliseconds. The same is true for serql.
This a java utility that would help you out.
Have tried it in one of my personal pet projects.
StopWatch swatch=new LoggingStopWatch();
//Write all your querying logic in here]n
QueryExecution qexec=QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql", query);
//this will print the time along with the passed message
The reult would be something like this
start time tag[Results Obtained]
Hope it helps :)