pastebin
| #1 paste tool since 2002
create new paste
tools
api
archive
real-time
faq
pastebin
Follow @pastebin
create new paste
trending pastes
sign up
login
my settings
my profile
My Pastes
Public Pastes
WPF - Draw overlay on a...
2 sec ago
White Collar S01E12 PL ...
2 sec ago
Untitled
3 sec ago
Untitled
10 sec ago
Untitled
11 sec ago
Untitled
17 sec ago
Untitled
18 sec ago
Untitled
22 sec ago
Layout Width
Share Pastebin
Untitled
By: a guest | Mar 22nd, 2010 | Syntax:
None
| Size: 0.19 KB | Hits: 64 | Expires: Never
Download
|
Raw
|
Embed
|
Report abuse
lags = read("file.csv")
nLags = sizeof(lags);
j = 0;
for(i = 0; i < nLags; ++i)
{
future = getCurrentTime() + lags[j];
while(getCurrentTime() < future)
sendEvent();
++j;
}
create new paste
|
create new version of this paste
RAW Paste Data
lags = read("file.csv") nLags = sizeof(lags); j = 0; for(i = 0; i < nLags; ++i) { future = getCurrentTime() + lags[j]; while(getCurrentTime() < future) sendEvent(); ++j; }