Useful code snippets

Useful code snippets

This simple “Convertors” class could be used:
1) to convert and format milliseconds to human-readable time interval.
2) to auto-convert size in bytes to human-readable format to show in GUI.

Usage examples:

console> 1 Hour 35 Minutes


console> 1,66 GB


Leave a Reply

Your email address will not be published. Required fields are marked *