I have this doubt, if i have a time in seconds, and I want to represent it in: "mm:ss:milliseconds:microseconds", is correct this code?
var minutes = timeCurrent / 60;
var seconds = timeCurrent % 60;
var milliseconds = timeCurrent * 1000;
var microseconds = timeCurrent * 1000000;
milliseconds = milliseconds % 1000;
microseconds = nanoseconds % 1000000;
currentTime.text = String.Format("{0:00}:{1:00}:{2:000}:{3:000000}",
minutes, seconds, milliseconds, microseconds);
1 second is 1*10^6 microseconds, and 1 second is 1000 milliseconds. Is correct, this code? The microseconds have 6 digits.
Thanks
You can use: