KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am new to c#; I have mainly done Java. I want to implement a timeout something along the lines: int now= Time.now(); while(true) { tryMethod(); if(now > now+5000) throw new TimeoutException(); } How can I implement this in C#? Thanks!
Tags (comma-separated)
Save Edits
Cancel