Writing a function name in a normal paragraph in my dissertation I want to mention the name of an specific function (or method) that I used in a experiment in a normal paragraph in my dissertation. What is the best way to do it? Considering that the official dissertation format that my teachers gave me doesn't mention how to do it.

For example:  


  "... with the Java programming language we can use System.nanoTime ..."
Is this a question regarding the formatting?

In this case I would use a typewriter font. In LaTeX this is simple by using \texttt:

... with the Java programming language we can use \texttt{System.nanoTime} ...


This looks similar to 


  ... with the Java programming language we can use System.nanoTime ...


In Microsoft Word, you could simply use some font, such as Courier New.

However, you should check with your supervisor if this is OK for him or her.