I haven't heard this phrase before. But a "quid" is one pound sterling (£1); so it seems to mean that even though he lost the bet, the process of making the bet gave him "an hour of daylight", which he wouldn't otherwise have got.
I don't know whether the hour of daylight is metaphorical, though. Do you have any more context?
- For Teachers