CGMiner can be set to quit after N number of shares. 335MH/s is ~4.7Shares/minute. 60 minutes in a hour. 24 hours in a day. 7 days in a week.
cgminer.exe --shares 47360
Usage: . [-atDdGCgIKklmpPQqrRsTouvwOchnV]
Options for both config file and command line:
--shares <arg> Quit after mining N shares (default: unlimited)
Con Kolivas <
kernel@kolivas.org>
15qSxP1SQcUX3o4nhkfdbgyoWEFMomJ4rZ
Then I would run a batch loop that writes the api output to a log file every 10 minutes, in case CGMiner crashed you could see how many of those 47300 shares were submitted.