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
Untitled
4 sec ago
Untitled
4 sec ago
Untitled
8 sec ago
Untitled
11 sec ago
Untitled
18 sec ago
Untitled
23 sec ago
Untitled
25 sec ago
Untitled
Python | 31 sec ago
Layout Width
Share Pastebin
Untitled
By: a guest | Mar 22nd, 2010 | Syntax:
None
| Size: 0.19 KB | Hits: 74 | Expires: Never
Download
|
Raw
|
Embed
|
Report abuse
This paste has a previous version,
view the difference
.
lags = read("file.csv")
nLags = sizeof(lags);
j = 0;
for(i = 0; i < nLags; ++i)
{
future = getCurrentTime() + lags[j];
if(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]; if(getCurrentTime() < future); sendEvent(); ++j; }