These units belong to the same measurement system: Common Units. Means, 700,000 millisecond (ms) is equal to 11. This page features online conversion from millisecond to days, hours, minutes and seconds. else, (we have not been up for at least an hour), print out the number of minutes we have been up. Problem: Convert 700,000 milliseconds in a minute? If we have been up for at least an hour, then print out the number of miliseconds we have been up divided by 60 - but modulo 60000, so if we have been up for 60 hours then start again from zero. Another commonly accepted type, that is platform neutral is uint16t, which is an unsigned 16-bit integer. Also, multiply by 60000, rather than divide. milliseconds minutes × 60,000 The time in milliseconds is equal to the minutes multiplied by 60,000. You should put the long as the return type, and keep the int as the parameter type.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |