C# Profiling Duration

Does anyone have an example of how to get the millisecond/microsecond execution time of a query in C#? I can't find any examples of this online.
Solution
I don't have really good alternative.
Option is to run same traversal from Gremlin Console or java GLV.

If you have GremlinGroovyScriptEngine (it's default for TinkerPop 3.6-3.7) then workaround is to convert response to string or Map before sending back from server, something like
await client.SubmitWithSingleResultAsync<Object>("g.V().profile().toList().toString()");
Was this page helpful?