Downhole measurement of fluid viscosity, typically performed either with logging tools based on nuclear magnetic resonance (NMR) or with sampling tools such as formation testers.