is there any possible to get the infinty time va开发者_如何学运维lue in milliseconds? that is i set that time delay value must be shows the window when the user close the application? any idea?
Your question is quite vague, but I'll try to answer it anyway.
Milliseconds are usually represented using values of type long
. There is no way to let a long
value represent infinity. However, the Long.MAX_VALUE
equals 9223372036854775807, which, if interpreted as milliseconds, corresponds to 292471208 yeas. Perhaps that's long enough for you? :-)
I'm not sure I completely understand the question, but isn't Long.MAX_VALUE good enough? It is equivalent to 292471208 years...
精彩评论