Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var startTime = DateTime.Now;
- if (DateTime.Now - startTime > TimeSpan.FromSeconds(15))
- {
- return Json( new
- {
- success = false,
- message = "Trade-off calculations took too long. Please tell a developer."
- } );
- }
Add Comment
Please, Sign In to add comment